Skip to content

Commit

Permalink
Merge pull request #635 from cakephp/ADmad-patch-1
Browse files Browse the repository at this point in the history
Update constants
  • Loading branch information
dereuromark committed Sep 13, 2023
2 parents 92c61b5 + a753f12 commit 68ec87c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/en/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ imports::
use Authentication\AuthenticationService;
use Authentication\AuthenticationServiceInterface;
use Authentication\AuthenticationServiceProviderInterface;
use Authentication\Identifier\AbstractIdentifier;
use Authentication\Identifier\IdentifierInterface;
use Authentication\Middleware\AuthenticationMiddleware;
use Cake\Http\MiddlewareQueue;
Expand Down Expand Up @@ -94,8 +95,8 @@ define the ``AuthenticationService`` it wants to use. Add the following method t
]);

$fields = [
IdentifierInterface::CREDENTIAL_USERNAME => 'email',
IdentifierInterface::CREDENTIAL_PASSWORD => 'password'
AbstractIdentifier::CREDENTIAL_USERNAME => 'email',
AbstractIdentifier::CREDENTIAL_PASSWORD => 'password'
];
// Load the authenticators. Session should be first.
$service->loadAuthenticator('Authentication.Session');
Expand Down

0 comments on commit 68ec87c

Please sign in to comment.