Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions fr/tutorials-and-examples/cms/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down
16 changes: 8 additions & 8 deletions ja/tutorials-and-examples/cms/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,6 @@ bcrypt は `PHPの推奨パスワードハッシュアルゴリズム <https://w
'queryParam' => 'redirect',
]);

// identifiers を読み込み、email と password のフィールドを確認します
$authenticationService->loadIdentifier('Authentication.Password', [
'fields' => [
'username' => 'email',
'password' => 'password',
]
]);

// authenticatorsをロードしたら, 最初にセッションが必要です
$authenticationService->loadAuthenticator('Authentication.Session');
// 入力した email と password をチェックする為のフォームデータを設定します
Expand All @@ -152,6 +144,14 @@ bcrypt は `PHPの推奨パスワードハッシュアルゴリズム <https://w
'password' => 'password',
],
'loginUrl' => Router::url('/users/login'),
'identifier' => [
'Authentication.Password' => [
'fields' => [
'username' => 'email',
'password' => 'password',
],
],
],
]);

return $authenticationService;
Expand Down
Loading