![]() |
The Red Matrix
|
Functions and inline functionality for authentication. More...
Functions | |
| nuke_session () | |
| Resets the current session. More... | |
| account_verify_password ($email, $pass) | |
| Verify login credentials. More... | |
| if((x($_POST, 'auth-params'))&&$_POST['auth-params']=== 'login') | match_openid ($authid) |
| Returns the channel_id for a given openid_identity. More... | |
Variables | |
| if((isset($_SESSION))&&(x($_SESSION, 'authenticated'))&&((!(x($_POST, 'auth-params')))||($_POST['auth-params']!== 'login'))) | else |
Functions and inline functionality for authentication.
This file provides some functions for authentication handling and inline functionality. Look for auth parameters or re-validate an existing session also handles logout. Also provides a function for OpenID identiy matching.
| account_verify_password | ( | $email, | |
| $pass | |||
| ) |
Verify login credentials.
| string | The email address to verify. | |
| string | $pass | The provided password to verify. |
A plugin indicates successful login by setting 'authenticated' to non-zero value and returning a user record Plugins should never set 'authenticated' except to indicate success - as hooks may be chained and later plugins should not interfere with an earlier one that succeeded.
Referenced by api_login(), removeaccount_post(), removeme_post(), and RedMatrix\RedDAV\RedBasicAuth\validateUserPass().
Returns the channel_id for a given openid_identity.
Queries the values from pconfig configuration for the given openid_identity and returns the corresponding channel_id.
How do we prevent that an OpenID identity is used more than once?
| string | $authid | The given openid_identity |
Referenced by openid_content().
| nuke_session | ( | ) |
| if ((isset($_SESSION))&&(x($_SESSION, 'authenticated'))&&((!(x($_POST, 'auth-params')))||($_POST['auth-params']!== 'login'))) else |
Inline - not a function look for auth parameters or re-validate an existing session also handles logout