From 3d26e1f1ecc79a4806ad4e2cc212725e6abb600b Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 1 Jan 2020 11:20:18 +0100 Subject: [PATCH] minor tweaks --- security/password_migration.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/password_migration.rst b/security/password_migration.rst index 7ba3c6e43cd..5565677133c 100644 --- a/security/password_migration.rst +++ b/security/password_migration.rst @@ -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 original password to the Security system `_. You can enable the upgrade behavior by implementing how this newly hashed password should be stored: @@ -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; } }