HTML5 (Javascript) Client Reference
Class quickConnect
Language: Javascript (HTML5)
The QuickConnect service. This class is used for support methods for users created and authenticated through the Simple Users feature.
Example
Here's an example on how to fetch a captcha for display, and submitting it when registering a Simple User.
Methods | ||||
---|---|---|---|---|
|
||||
|
quickConnect.simpleGetCaptcha
|
Creates a Captcha image and key, to be used for registrations where the added security of Captcha is required.
Arguments
gameId:string | |
The game id of the game you wish to make a captcha for. This value can be found in the admin panel. | |
width:number | |
The width of the Captcha image. | |
height:number | |
The height of the Captcha image. | |
successCallback:function(simpleGetCaptchaOutput) | |
Callback function that will be called with the captcha information | |
errorCallback:function(PlayerIOError) | |
Callback function that will be called if an error occurs |
quickConnect.simpleRecoverPassword
|
Initiates the password recovery process for a user by sending him an email. The user must have supplied an email address during registration.
Arguments
gameId:string | |
The game id of the game the user is registered in. | |
usernameOrEmail:string | |
The username or email address of the user that wishes to recover his password. | |
successCallback:function() | |
Callback function that will be called when the recovery e-mail has been sent | |
errorCallback:function(PlayerIOError) | |
Callback function that will be called if an error occurs |