Skip to content

Commit dd9e716

Browse files
authored
Bring example in logical order
From a request's perspective the authenticator is before the identifier.
1 parent b0c324b commit dd9e716

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)