Skip to content

minor tweaks #12874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 2, 2020
Merged
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
4 changes: 2 additions & 2 deletions security/password_migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Upgrade the Password
Upon successful login, the Security system checks whether a better algorithm
is available to hash the user's password. If it is, it'll hash the correct
password using the new hash. If you use a Guard authenticator, you first need to
`provide the original password to the Security system <Provide the Password when using Guards>`_.
`provide the original password to the Security system <Provide the Password when using Guard>`_.

You can enable the upgrade behavior by implementing how this newly hashed
password should be stored:
Expand Down Expand Up @@ -150,7 +150,7 @@ for this login request. This password is used in the migration process::

public function getPassword($credentials): ?string
{
return $credentials['password'];
return $credentials['password'] ?? null;
}
}

Expand Down