ninja_auth_Core Class Reference

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.

Detailed Description

This helper class provides various routines for authenticating users against a database that stores passwords with multiple different hash-types.


Member Function Documentation

static ninja_auth_Core::is_locked_out (  )  [static]

Check if the user has tried to login too many times.

Returns:
bool
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?

Parameters:
$username The user's username
$password The user's password
$auth_method optional, authentication method to use
Returns:
TRUE if everything was OK, or a string controller you're suggested to redirect to

Take care of access for limited users

Check that user has access to view some objects or logout with a message


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 22 Apr 2013 for ninja by  doxygen 1.6.1