General developer forum

Login failed 'id' codes

 
Picture of Frank Margulis
Login failed 'id' codes
 

When a user fails to login properly, the "reason" is given as a number code.  Where can I find the meaning of these codes?

 
Average of ratings: -
Renaat
Re: Login failed 'id' codes
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developers

/** Login attempt successful. */
define('AUTH_LOGIN_OK', 0);
/** Can not login because user does not exist. */
define('AUTH_LOGIN_NOUSER', 1);
/** Can not login because user is suspended. */
define('AUTH_LOGIN_SUSPENDED', 2);
/** Can not login, most probably password did not match. */
define('AUTH_LOGIN_FAILED', 3);
/** Can not login because user is locked out. */
define('AUTH_LOGIN_LOCKOUT', 4);
/** Can not login becauser user is not authorised. */
define('AUTH_LOGIN_UNAUTHORISED', 5);


 
Average of ratings: -
Picture of Frank Margulis
Re: Login failed 'id' codes
 

Thank you.  Where did you find these explanations?

 
Average of ratings: -
Renaat
Re: Login failed 'id' codes
 
Average of ratings: -