Class LoginController
Class LoginController contains functions for user (de)authentication.
- Core\ParentController
- Core\LoginController
Direct known subclasses
LoginController
Namespace: Core
Package: Core
Hooks:
Located at LoginController.php
Package: Core
Hooks:
('on_userauth', ['user' => $user]) // Called just after the login session has been createdCore\LoginController::login()
('on_userdeauth', ['user' => Session::getUser()]) // Called just before destroying the login session.Core\LoginController::deauthenticateUser()
Located at LoginController.php
public
|
|
public static
|
|
public
|
|
public
|
#
login( )
Performs an authentication request for a user with 'username' and 'password' post vars If the credentials are not correct, LoginController->authenticateUser throws the user accordingly |
public
|
#
logout( )
Logs a user out. That is, sets the current user with ROLE_USER privileges and redirects them to the Home path. |
protected
mixed
|
#
authenticateUser( string $username, string $password )
Checks against the database or the config file (depending on configuration) if the credentials are correct. |
protected
LoginController;
|
add(),
addFooter(),
addHeader(),
addJSVar(),
addScript(),
addStyle(),
asset(),
cache(),
compressWithMinify(),
get(),
getGet(),
getPost(),
header(),
json(),
minimize(),
minimizeURL(),
path(),
redirect(),
setFavicon(),
setTitle(),
show(),
url()
|
protected
|
$model
The instance of the model |
|
protected
|
$permission
The instance of the Permission class. Used for (de)authentication. |
$ajax,
$config,
$hooks,
$path,
$templatePath,
$vars,
$viewPath
|