Метод | Описание | |
---|---|---|
__construct ( Cake\Controller\ComponentRegistry $registry, array $config ) | Constructor. | |
authenticate ( Cake\Network\Request $request, |
Implemented because CakePHP forces you to. | |
getUser ( Cake\Network\Request $request ) : mixed | Get token information from the request. | |
unauthenticated ( Cake\Network\Request $request, |
If unauthenticated, try to authenticate and respond. |
Метод | Описание | |
---|---|---|
_findUser ( string $username, string $password = null ) : Mixed | Find a user record. |
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 | The request object. |
$response | The response object. | |
Результат | boolean | Always false. |
public unauthenticated ( Cake\Network\Request $request, |
||
$request | Cake\Network\Request | The request object. |
$response | The response object. | |
Результат | boolean | False on failure, user on success. |