Method | Description | |
---|---|---|
__construct ( Cake\Controller\ComponentRegistry $registry, array $config ) | Constructor | |
authenticate ( Cake\Network\Request $request, |
Authenticate user | |
getUser ( Cake\Network\Request $request ) : mixed | Authenticates the identity contained in the cookie. Will use the userModel config, and fields config to find COOKIE data that is used to find a matching record in the model specified by userModel. Will return false if there is no cookie data, either username or password is missing, or if the scope conditions have not been met. | |
logout ( Cake\Event\Event $event, array $user ) : void | Called from AuthComponent::logout() |
public __construct ( Cake\Controller\ComponentRegistry $registry, array $config ) | ||
$registry | Cake\Controller\ComponentRegistry | The Component registry used on this request. |
$config | array | Array of config to use. |
public authenticate ( Cake\Network\Request $request, |
||
$request | Cake\Network\Request | Request object. |
$response | Response object. | |
return | array | boolean | Array of user info on success, false on falure. |