Skip to content

Commit 6780f23

Browse files
committed
minor #12874 minor tweaks (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- minor tweaks Commits ------- 3d26e1f minor tweaks
2 parents de363d5 + 3d26e1f commit 6780f23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/password_migration.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Upgrade the Password
120120
Upon successful login, the Security system checks whether a better algorithm
121121
is available to hash the user's password. If it is, it'll hash the correct
122122
password using the new hash. If you use a Guard authenticator, you first need to
123-
`provide the original password to the Security system <Provide the Password when using Guards>`_.
123+
`provide the original password to the Security system <Provide the Password when using Guard>`_.
124124

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

151151
public function getPassword($credentials): ?string
152152
{
153-
return $credentials['password'];
153+
return $credentials['password'] ?? null;
154154
}
155155
}
156156

0 commit comments

Comments
 (0)