Skip to content

Commit 3460d78

Browse files
authored
Merge pull request #337 from cakephp/quick-start-example-ordering
Bring example in logical order
2 parents 9ba4051 + dd9e716 commit 3460d78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/en/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ Example of configuring the authentication middleware using ``authentication`` ap
5151
'password' => 'password'
5252
];
5353

54-
// Load identifiers
55-
$service->loadIdentifier('Authentication.Password', compact('fields'));
56-
5754
// Load the authenticators, you want session first
5855
$service->loadAuthenticator('Authentication.Session');
5956
$service->loadAuthenticator('Authentication.Form', [
6057
'fields' => $fields,
6158
'loginUrl' => '/users/login'
6259
]);
6360

61+
// Load identifiers
62+
$service->loadIdentifier('Authentication.Password', compact('fields'));
63+
6464
return $service;
6565
}
6666

0 commit comments

Comments
 (0)