Closed tylerjemarshall closed 9 years ago
Client attempts to join room that is private. Server requests object char[] password from client. The server requests object, by sending String "#roomauth", will trigger client to create Dialog Box. Client receives request, creates RoomAuth. RoomAuth handshakes client, by sending char[] password to server. Server compares clients char[] password with room char[] password, if true, allow client to join room.
Else, send message to client "Incorrect Password"
Client attempts to join room that is private. -DONE Server requests object char[] password from client. -DONE The server requests object, by sending String "#roomauth", will trigger client to create Dialog Box. -DONE Client receives request, creates RoomAuth. -DONE RoomAuth handshakes client, by sending char[] password to server. -DONE Server compares clients char[] password with room char[] password, if true, allow client to join room. -Not done yet... server isn't comparing passwords correctly.
Else, send message to client "Incorrect Password" -Done.
I think i got it working. Take a look, and close if you think it's good!
Rooms can be set to private, which will require having a password. When a user tries to join a private room, will be prompted for a password. If incorrect, client will be pushed to the default room "commons"