I have the user log in with no password.
The reason the user logs in with no password is because the webserver stores the password in a salted hash. So because SmartFox encrypts the password for safety, I cannot recreate the salted hash by asking the db for the password field.
The server and client then exchange public keys and they can encrypt/decrypt data just fine, I tested that.
I then have the user log in by passing encrypted strings for username and password that are checked against my website's user/pass.
Now here is my question. I validate they have the correct data when entered correctly, so I will be passing the correct success message. However, on an error or invalid password I want to disconnect the user. So I was calling
Code: Select all
User.Disconnect(ClientDisconnectReason.valueOf("Username or Password is incorrect."));For the life of me I cannot figure out what message, if any, is coming across to Unity3d to inform me that we are no longer connected so I can show the message and kick the user back to the login screen. Is there a message or do I need to go to the effort of sending back a notification with a failure like OnLogin?