From a47971aefd2bee45f4e57dd1fc3ea24bb370881f Mon Sep 17 00:00:00 2001 From: root Date: Sun, 29 Jun 2014 18:32:40 +0200 Subject: Some doco work. Changed main.bb and added a return link to all .bb files and began planning new entries for user orientated documentation. --- doc/old/html/auth_8php.html | 223 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 doc/old/html/auth_8php.html (limited to 'doc/old/html/auth_8php.html') diff --git a/doc/old/html/auth_8php.html b/doc/old/html/auth_8php.html new file mode 100644 index 000000000..eefab2c61 --- /dev/null +++ b/doc/old/html/auth_8php.html @@ -0,0 +1,223 @@ + + + + + + +The Red Matrix: include/auth.php File Reference + + + + + + + + + + + + + +
+
+ + + + + + + +
+
The Red Matrix +
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
auth.php File Reference
+
+
+ + + + + + + + +

+Functions

 nuke_session ()
 
 account_verify_password ($email, $pass)
 
if((x($_POST,'auth-params'))&&$_POST['auth-params']===
+'login') 
match_openid ($authid)
 
+ + + +

+Variables

if((isset($_SESSION))&&(x($_SESSION,'authenticated'))&&((!(x($_POST,'auth-params')))||($_POST['auth-params']!==
+'login'))) 
else
 
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
account_verify_password ( $email,
 $pass 
)
+
+

Verify login credentials

+

Returns account record on success, null on failure

+

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(), removeme_post(), and RedBasicAuth\validateUserPass().

+ +
+
+ +
+
+ + + + + + + + +
if ((x($_POST,'auth-params'))&&$_POST['auth-params']=== 'login') match_openid ( $authid)
+
+ +

Referenced by openid_content().

+ +
+
+ +
+
+ + + + + + + +
nuke_session ()
+
+ +

Referenced by api_account_logout().

+ +
+
+

Variable Documentation

+ +
+
+ + + + +
if ((isset($_SESSION))&&(x($_SESSION,'authenticated'))&&((!(x($_POST,'auth-params')))||($_POST['auth-params']!== 'login'))) else
+
+Initial value:
{
+
+
if(isset($_SESSION)) {
+ +
}
+
+
+
+
if((x($_POST,'password')) && strlen($_POST['password']))
+
$encrypted = hash('whirlpool',trim($_POST['password']))
+

Inline - not a function look for auth parameters or re-validate an existing session also handles logout

+ +
+
+
+
+ -- cgit v1.2.3