|
|
const | LOGIN_SUCCESS = 0 |
| |
|
const | LOGIN_USER_NOT_FOUND = 1 |
| |
|
const | LOGIN_BAD_PASSWORD = 2 |
| |
|
const | LOGIN_USER_NOT_VALID = 3 |
| |
Authuser class
Handles user authorization
| Authuser::__construct |
( |
| ) |
|
Initialization function. This function is called by the post_controller_constructor hook. It will set up the auth user data and perform autologin.
| Authuser::login |
( |
|
$username, |
|
|
|
$password, |
|
|
|
$persistent = false, |
|
|
|
$registration = false |
|
) |
| |
Process the login form POST.
- Parameters
-
| string | $username | |
| string | $password | |
| bool | $persistent | |
| bool | $registration | Flag to indicate registration mode |
| Authuser::switch_user |
( |
|
$uid | ) |
|
Change to a different user (if the real user has permission)
- Parameters
-
The documentation for this class was generated from the following file:
- qvci/libraries/Authuser.php