User.Login

Description

Verifies the provided username and password then logs the user in.

Request Parameters

Command = {User.Login} (required)
API Command
ResponseFormat = {JSON | XML} (required)
Response format
JSONPCallBack = {bool}
Send this parameter for cross-domain. More info about JSONP can be found here: http: //en.wikipedia.org/wiki/JSON#JSONP
Username = {string} (required)
Username of the user to be logged in
Password = {string} (required)
Password of the user to be logged in
RememberMe = {string} (required)
If set to any value, login information will be saved in the cookie and login will be skipped next time

Response Parameters

Success = {true | false}
States if there is an error or not
ErrorCode = {integer}
If there is an error, error's code
SessionID = {string}
SessionID of the logged in user

Error Codes

1
Username is missing
2
Password is missing
3
Invalid login information
4
Invalid image verification
5
Image verification failed
99998
Authentication failure or session expired
99999
Not enough privileges