login

external fun login(name: String, pwd: String, listener: ProgressListener): Int

Login user

Return

Error code

Parameters

name

The unique user name ( must be checked for availability with checkNameAvailability )

pwd

The user password. The server will not keep the password literal ( nor a hash )

listener

The operation listener, will receive the result error code