registerAccount

external fun registerAccount(name: String, pwd: String, firstName: String = "", lastName: String = "", phone: String = "", mail: String = "", iconId: Int = -1, listener: ProgressListener): Int

Register new user account

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 )

firstName

The user first name ( optional )

lastName

The user last name ( optional )

phone

The user phone ( optional )

mail

The user email address ( optional )

iconId

The user icon index in getLoginIconList( optional, if no icon is set must be -1 )

listener

The operation listener, will receive the result error code