I want to find out the status of the login after its sent, like if it successed or not.
var params = new SFS2X.SFSObject();
if (login_type == "signup") {
params.putUtfString("username", username);
params.putInt("age", parseInt(age));
params.putUtfString("role", role);
}
params.putUtfString("login_type", login_type);
sfs.send(new SFS2X.LoginRequest(email, password, params, zoneName));
How to get status of login
Re: How to get status of login
Hi,
you have two client side events to handle the login request:
SFSEvent.LOGIN
SFSEvent.LOGIN_ERROR
The latter will report errors such as: incorrect credentials, Zone full, and more...
The error messages and codes are documented here:
https://docs2x.smartfoxserver.com/Advan ... r-messages
Cheers
you have two client side events to handle the login request:
SFSEvent.LOGIN
SFSEvent.LOGIN_ERROR
The latter will report errors such as: incorrect credentials, Zone full, and more...
The error messages and codes are documented here:
https://docs2x.smartfoxserver.com/Advan ... r-messages
Cheers
Re: How to get status of login
ty!! im stupid haha