tylerjemarshall / ChatServer

Will support lobbies and mini-games.
Eclipse Public License 1.0
0 stars 0 forks source link

Room Authentication #6

Closed tylerjemarshall closed 9 years ago

tylerjemarshall commented 9 years ago

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"

tylerjemarshall commented 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"

tylerjemarshall commented 9 years ago

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.

tylerjemarshall commented 9 years ago

I think i got it working. Take a look, and close if you think it's good!