Summary
Allow room creators to set a password that others must enter to join.
Requirements
UI/UX
- Password modal with input field and submit button
- Show error message for incorrect password
- Lock icon indicator in header for protected rooms
- Toast notification on successful unlock
Technical Notes
// Server-side room structure
{
id: "room-abc123",
passwordHash: "bcrypt-hash", // null if not protected
owner: "socket-id",
content: "...",
users: Map
}
Security Considerations
- Use bcrypt for password hashing
- Rate limit password attempts (max 5 per minute)
- Clear password from memory after validation
Acceptance Criteria
Summary
Allow room creators to set a password that others must enter to join.
Requirements
UI/UX
Technical Notes
Security Considerations
Acceptance Criteria