bool is_enabled(
int
$user_id)
|
|
Check if a given user is enabled.
This function checks, if a given user is enabled (allowed to login) and return a regarding boolean value.
Tags:
Parameters:
bool login(
string
$username, string
$password, [array
$params = array()])
|
|
This function logs a user in
This function tries to authenticate a given username against the used authentication backend (using the authenticate() function of the active backend - that means from the used child class from this class). The authentication may have two results: successful or failed: * failed: when the authentication was not possible (the reason doesn't matter), this method returns false to indicate the failure. * successful: when the authentication was successful, the method checks if the authenticated user exists in the currently used user management database. If the user doesn't exist there, it is added.
When the user exists in the user management database from the beginning, the method checks if the account is enabled.
Only when the account is in the user management database and is enabled, then the user is registered in the session (using the updateAfterLogin() method) and the function will return true to indicate that the login was successful.
Tags:
Parameters: