Static Public Member Functions |
static | createLoginForm ($createOnlyInvisible=false, $signup=false) |
| Outputs the necessary login form.
|
static | testLogin (&$login, &$passwordhash, &$signup) |
| Processes login/signup If a login or signup using a login form created by createLoginForm($createOnlyInvisible,$signup) occured, the password gets decrypted. If a login was done, testLogin returns $error_success if login credentials are right. If signup should be done, testLogin always returns $error_success if decryption was successfull. The users are not inserted into database automatically!
|
Member Function Documentation
static createLoginForm |
( |
$ |
createOnlyInvisible = false , |
|
|
$ |
signup = false |
|
) |
| [static] |
Outputs the necessary login form.
- Parameters:
-
createOnlyInvisible | (optional) Defaults to false. If this parameter is false, a complete login-form get generated. Else, you have to provide your own login form, which calls javascript:encrypt() to submit |
signup | (optional) Defaults to false. If true, a signup-form is generated instead of a login form |
static testLogin |
( |
&$ |
login, |
|
|
&$ |
passwordhash, |
|
|
&$ |
signup |
|
) |
| [static] |
Processes login/signup If a login or signup using a login form created by createLoginForm($createOnlyInvisible,$signup) occured, the password gets decrypted. If a login was done, testLogin returns $error_success if login credentials are right. If signup should be done, testLogin always returns $error_success if decryption was successfull. The users are not inserted into database automatically!
- Parameters:
-
[out] | login | contains login name if signup/login was successful |
[out] | passwordhash | contains password hash if signup/login was successful |
[out] | signup | true if signup occured |
The documentation for this class was generated from the following file: