__construct()
__construct()
Class Constructor
Contains current user's methods.
check_login(string $username, \type $password) : array|null
Performs the check of the given user credentials.
string | $username | Given user's name. |
\type | $password | Given user's password (not hashed yet). |
Returns the session data of the logged in user or null on failure.
regenerate_password(string $username, string $email) : string|boolean
If the given arguments correspond to an existing user record, generate a new password and send it with an email.
string | $username | |
string |
Returns the new password on success or FALSE on failure.