Class PasswordModel
Contains the default logic to retrieve a user from the database.
-
Core\ParentModel
-
Core\Auth\PasswordModel
Methods summary
public static
Core\Auth\PasswordModel
|
#
singleton( )
Returns the class instance, creating it if it did not exist.
Returns the class instance, creating it if it did not exist.
Returns
Overrides
|
public
mixed
|
#
getUser( string $username, string $password )
Gets an user from the database and updates last_login and attempts
Gets an user from the database and updates last_login and attempts
Parameters
- $username
- The name of the user
- $password
- The unhashed password of the user
Returns
mixed $user on success, FALSE on error
|