Constructor
new LoginRequest(userNameopt, passwordopt, zoneNameopt, parametersopt)
Creates a new instance of the LoginRequest class.
Pass the instance to the SmartFox#send method to validate and execute the request.
Pass the instance to the SmartFox#send method to validate and execute the request.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
userName | string | <optional> | The name to be assigned to the User; if an empty string is passed and the Zone allows guest Users login, the name is generated automatically by the server. | |
password | string | <optional> | The User password to access the system. SmartFoxServer doesn't offer a default authentication system, so the password must be validated implementing a custom login system in a server-side Extension attached to the Zone. | |
zoneName | string | <optional> | null | The name (case-sensitive) of the server Zone to login to. If the Zone name is not passed here, the client will use the Zone global setting. |
parameters | SFSObject | <optional> | null | An object containing custom parameters to be passed to the Zone Extension (requires a custom login system to be in place). |