Skip to content

Commit 0f647ec

Browse files
authored
Merge pull request #656 from umer936/docs_update_for_const_location
The CREDENTIAL_* consts are in AbstractIdentifier. Fix docs to match.
2 parents 67e07bf + 8f5fa12 commit 0f647ec

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

docs/es/authenticators.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -276,17 +276,17 @@ se desconecta explícitamente vía ``AuthenticationComponent::logout()``, la coo
276276

277277
// Reuse fields in multiple authenticators.
278278
$fields = [
279-
IdentifierInterface::CREDENTIAL_USERNAME => 'email',
280-
IdentifierInterface::CREDENTIAL_PASSWORD => 'password',
279+
AbstractIdentifier::CREDENTIAL_USERNAME => 'email',
280+
AbstractIdentifier::CREDENTIAL_PASSWORD => 'password',
281281
];
282282

283283
// Put form authentication first so that users can re-login via
284284
// the login form if necessary.
285285
$service->loadAuthenticator('Authentication.Form', [
286286
'loginUrl' => '/users/login',
287287
'fields' => [
288-
IdentifierInterface::CREDENTIAL_USERNAME => 'email',
289-
IdentifierInterface::CREDENTIAL_PASSWORD => 'password',
288+
AbstractIdentifier::CREDENTIAL_USERNAME => 'email',
289+
AbstractIdentifier::CREDENTIAL_PASSWORD => 'password',
290290
],
291291
]);
292292
// Then use sessions if they are active.

docs/es/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ de clase::
2929
use Authentication\AuthenticationService;
3030
use Authentication\AuthenticationServiceInterface;
3131
use Authentication\AuthenticationServiceProviderInterface;
32-
use Authentication\Identifier\IdentifierInterface;
32+
use Authentication\Identifier\AbstractIdentifier;
3333
use Authentication\Middleware\AuthenticationMiddleware;
3434
use Cake\Http\MiddlewareQueue;
3535
use Cake\Routing\Router;
@@ -76,8 +76,8 @@ el ``AuthenticationService`` que quiere usar. Agregue el siguiente método a su
7676
]);
7777

7878
$fields = [
79-
IdentifierInterface::CREDENTIAL_USERNAME => 'email',
80-
IdentifierInterface::CREDENTIAL_PASSWORD => 'password'
79+
AbstractIdentifier::CREDENTIAL_USERNAME => 'email',
80+
AbstractIdentifier::CREDENTIAL_PASSWORD => 'password'
8181
];
8282
// Load the authenticators. Session should be first.
8383
$service->loadAuthenticator('Authentication.Session');

docs/fr/authenticators.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -349,17 +349,17 @@ détruit**. Un exemple de configuration serait::
349349

350350
// Réutiliser les champs dans plusieurs authentificateurs.
351351
$fields = [
352-
IdentifierInterface::CREDENTIAL_USERNAME => 'email',
353-
IdentifierInterface::CREDENTIAL_PASSWORD => 'password',
352+
AbstractIdentifier::CREDENTIAL_USERNAME => 'email',
353+
AbstractIdentifier::CREDENTIAL_PASSWORD => 'password',
354354
];
355355

356356
// Placer l'authentification par formulaire en premier de façon à ce que les
357357
// utilisateurs puissent se reconnecter via le formulaire si besoin.
358358
$service->loadAuthenticator('Authentication.Form', [
359359
'loginUrl' => '/users/login',
360360
'fields' => [
361-
IdentifierInterface::CREDENTIAL_USERNAME => 'email',
362-
IdentifierInterface::CREDENTIAL_PASSWORD => 'password',
361+
AbstractIdentifier::CREDENTIAL_USERNAME => 'email',
362+
AbstractIdentifier::CREDENTIAL_PASSWORD => 'password',
363363
],
364364
]);
365365
// Ensuite utiliser les sessions si elles sont actives.

docs/fr/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ authentification. Tout d'abord, mettons en place le middleware. Dans votre
3434
use Authentication\AuthenticationService;
3535
use Authentication\AuthenticationServiceInterface;
3636
use Authentication\AuthenticationServiceProviderInterface;
37-
use Authentication\Identifier\IdentifierInterface;
37+
use Authentication\Identifier\AbstractIdentifier;
3838
use Authentication\Middleware\AuthenticationMiddleware;
3939
use Cake\Http\MiddlewareQueue;
4040
use Cake\Routing\Router;
@@ -98,8 +98,8 @@ utiliser. Ajoutez la méthode suivante à votre **src/Application.php**::
9898
]);
9999

100100
$fields = [
101-
IdentifierInterface::CREDENTIAL_USERNAME => 'email',
102-
IdentifierInterface::CREDENTIAL_PASSWORD => 'password'
101+
AbstractIdentifier::CREDENTIAL_USERNAME => 'email',
102+
AbstractIdentifier::CREDENTIAL_PASSWORD => 'password'
103103
];
104104
// Chargez les authentificateurs. Session est censé figurer en premier.
105105
$service->loadAuthenticator('Authentication.Session');

docs/ja/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ CakePHPから `composer <https://getcomposer.org/>`_ でプラグインをイン
3232
use Authentication\AuthenticationService;
3333
use Authentication\AuthenticationServiceInterface;
3434
use Authentication\AuthenticationServiceProviderInterface;
35-
use Authentication\Identifier\IdentifierInterface;
35+
use Authentication\Identifier\AbstractIdentifier;
3636
use Authentication\Middleware\AuthenticationMiddleware;
3737
use Cake\Http\MiddlewareQueue;
3838
use Psr\Http\Message\ServerRequestInterface;
@@ -69,8 +69,8 @@ CakePHPから `composer <https://getcomposer.org/>`_ でプラグインをイン
6969
]);
7070

7171
$fields = [
72-
IdentifierInterface::CREDENTIAL_USERNAME => 'email',
73-
IdentifierInterface::CREDENTIAL_PASSWORD => 'password'
72+
AbstractIdentifier::CREDENTIAL_USERNAME => 'email',
73+
AbstractIdentifier::CREDENTIAL_PASSWORD => 'password'
7474
];
7575

7676
// 認証者を読み込みます。セッションを優先してください。

0 commit comments

Comments
 (0)