\User\AuthFormAuthenticate

An authentication adapter for AuthComponent. Provides the ability to authenticate using POST data and using user's **email or username**.

It also provides "remember me" capabilities using cookies.

Summary

Methods
Properties
Constants
implementedEvents()
authenticate()
logout()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

implementedEvents()

implementedEvents() : array

Returns a list of all events that this authenticate class will listen to.

An authenticate class can listen to following events fired by AuthComponent:

  • Auth.afterIdentify - Fired after a user has been identified using one of configured authenticate class. The callback function should have signature like afteIndentify(Event $event, array $user) when $user is the identified user record.

  • Auth.logout - Fired when AuthComponent::logout() is called. The callback function should have signature like logout(Event $event, array $user) where $user is the user about to be logged out.

Returns

array —

List of events this class listens to. Defaults to [].

authenticate()

authenticate(\Cake\Network\Request $request, \Cake\Network\Response $response)

{@inheritDoc}

Parameters

\Cake\Network\Request $request
\Cake\Network\Response $response

logout()

logout(\Cake\Event\Event $event, array $user) : void

Removes "remember me" cookie.

Parameters

\Cake\Event\Event $event
array $user

User information given as an array