This helper class provides various routines for authenticating users against a database that stores passwords with multiple different hash-types. More...
Static Public Member Functions | |
static | login_user ($username, $password, $auth_method=false) |
Does the required steps to log in a user via the specified auth_method (the last bit means you have to make sure that session/config has properly stringified auth_method). | |
static | is_locked_out () |
Check if the user has tried to login too many times. |
This helper class provides various routines for authenticating users against a database that stores passwords with multiple different hash-types.
static ninja_auth_Core::is_locked_out | ( | ) | [static] |
Check if the user has tried to login too many times.
static ninja_auth_Core::login_user | ( | $ | username, | |
$ | password, | |||
$ | auth_method = false | |||
) | [static] |
Does the required steps to log in a user via the specified auth_method (the last bit means you have to make sure that session/config has properly stringified auth_method).
FIXME: what's an auth method in this context?
$username | The user's username | |
$password | The user's password | |
$auth_method | optional, authentication method to use |
Take care of access for limited users
Check that user has access to view some objects or logout with a message