Class AuthenticateController
Class AuthenticateController contains functions for user (de)authentication.
- Core\ParentController
-
Core\Auth\AuthenticateController
Direct known subclasses
LoginController
Namespace: Core\Auth
Package: Core
Hooks:
Located at app/Kernel/Auth/AuthenticateController.php
Package: Core
Hooks:
('on_userauth', ['user' => $user]) // Called just after the login session has been created \Core\AuthenticateController::login ('on_userdeauth', ['user' => Session::getUser()]) // Called just before destroying the login session. \Core\AuthenticateController::deauthenticateUser
Located at app/Kernel/Auth/AuthenticateController.php
public
|
|
public static
|
|
public
|
|
public
|
|
public
|
|
protected
mixed
|
#
authenticateUser( string $username, string $password )
Checks against the database or the config file (depending on configuration) if the credentials are correct. |
protected
AuthenticateController;
|
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
|