diff --git a/fr/tutorials-and-examples/cms/authentication.rst b/fr/tutorials-and-examples/cms/authentication.rst index a2054e00b4..fe9553529a 100644 --- a/fr/tutorials-and-examples/cms/authentication.rst +++ b/fr/tutorials-and-examples/cms/authentication.rst @@ -148,14 +148,6 @@ Puis ajoutez le code suivant:: 'queryParam' => 'redirect', ]); - // Charge les identifiants et s'assure que nous vérifions les champs e-mail et mot de passe - $authenticationService->loadIdentifier('Authentication.Password', [ - 'fields' => [ - 'username' => 'email', - 'password' => 'password', - ] - ]); - // Charge les authenticators, nous voulons celui de session en premier $authenticationService->loadAuthenticator('Authentication.Session'); // Configure la vérification des données du formulaire pour choisir l'email et le mot de passe @@ -165,6 +157,14 @@ Puis ajoutez le code suivant:: 'password' => 'password', ], 'loginUrl' => Router::url('/users/login'), + 'identifier' => [ + 'Authentication.Password' => [ + 'fields' => [ + 'username' => 'email', + 'password' => 'password', + ], + ], + ], ]); return $authenticationService; diff --git a/ja/tutorials-and-examples/cms/authentication.rst b/ja/tutorials-and-examples/cms/authentication.rst index e5fa84099d..f6428aef9d 100644 --- a/ja/tutorials-and-examples/cms/authentication.rst +++ b/ja/tutorials-and-examples/cms/authentication.rst @@ -135,14 +135,6 @@ bcrypt は `PHPの推奨パスワードハッシュアルゴリズム 'redirect', ]); - // identifiers を読み込み、email と password のフィールドを確認します - $authenticationService->loadIdentifier('Authentication.Password', [ - 'fields' => [ - 'username' => 'email', - 'password' => 'password', - ] - ]); - // authenticatorsをロードしたら, 最初にセッションが必要です $authenticationService->loadAuthenticator('Authentication.Session'); // 入力した email と password をチェックする為のフォームデータを設定します @@ -152,6 +144,14 @@ bcrypt は `PHPの推奨パスワードハッシュアルゴリズム 'password', ], 'loginUrl' => Router::url('/users/login'), + 'identifier' => [ + 'Authentication.Password' => [ + 'fields' => [ + 'username' => 'email', + 'password' => 'password', + ], + ], + ], ]); return $authenticationService;