Skip to content

Commit 373bd7a

Browse files
committed
Remove sentence about not verifying passwords from deprecation notices
1 parent ad2c520 commit 373bd7a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

docs/en/authenticators.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ Configuration options:
1818

1919
- **sessionKey**: The session key for the user data, default is
2020
``Auth``
21-
- **identify**: Deprecated in 3.4.0. This option only verifies that the
22-
username exists in the database, it does not verify passwords as the
23-
documentation previously suggested. Use ``PrimaryKeySessionAuthenticator``
21+
- **identify**: Deprecated in 3.4.0. Use ``PrimaryKeySessionAuthenticator``
2422
instead if you need to fetch fresh user data from the database on each request.
2523
- **fields**: Allows you to map the ``username`` field to the unique
2624
identifier in your user storage. Defaults to ``username``.

src/Authenticator/SessionAuthenticator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ class SessionAuthenticator extends AbstractAuthenticator implements PersistenceI
3333
* - `fields` The fields to use to verify a user by.
3434
* - `sessionKey` Session key.
3535
* - `identify` Whether to identify user data stored in a session.
36-
* Deprecated: This option only verifies that the username exists in the database,
37-
* it does not verify passwords. Use `PrimaryKeySessionAuthenticator` instead if you
36+
* Deprecated: Use `PrimaryKeySessionAuthenticator` instead if you
3837
* need to fetch fresh user data from the database on each request.
3938
*
4039
* @var array
@@ -70,7 +69,6 @@ public function authenticate(ServerRequestInterface $request): ResultInterface
7069
deprecationWarning(
7170
'3.4.0',
7271
'The `identify` option is deprecated. ' .
73-
'This option only verifies that the username exists, not the password. ' .
7472
'Use `PrimaryKeySessionAuthenticator` instead to fetch fresh user data on each request.',
7573
);
7674
$credentials = [];

0 commit comments

Comments
 (0)