File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
en/tutorials-and-examples/cms Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -145,14 +145,6 @@ Then add the following::
145
145
'queryParam' => 'redirect',
146
146
]);
147
147
148
- // Load identifiers, ensure we check email and password fields
149
- $authenticationService->loadIdentifier('Authentication.Password', [
150
- 'fields' => [
151
- 'username' => 'email',
152
- 'password' => 'password',
153
- ],
154
- ]);
155
-
156
148
// Load the authenticators, you want session first
157
149
$authenticationService->loadAuthenticator('Authentication.Session');
158
150
// Configure form data check to pick email and password
@@ -162,6 +154,14 @@ Then add the following::
162
154
'password' => 'password',
163
155
],
164
156
'loginUrl' => Router::url('/users/login'),
157
+ 'identifier' => [
158
+ 'Authentication.Password' => [
159
+ 'fields' => [
160
+ 'username' => 'email',
161
+ 'password' => 'password',
162
+ ],
163
+ ],
164
+ ],
165
165
]);
166
166
167
167
return $authenticationService;
You can’t perform that action at this time.
0 commit comments