From 02ef169af88c95e450787bb3b461584d54f79e4a Mon Sep 17 00:00:00 2001 From: Dominik Pfaffenbauer Date: Tue, 11 May 2021 09:26:58 +0200 Subject: [PATCH] [FrontendBundle] clear password reset hash after reset --- .../Bundle/FrontendBundle/Controller/RegisterController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CoreShop/Bundle/FrontendBundle/Controller/RegisterController.php b/src/CoreShop/Bundle/FrontendBundle/Controller/RegisterController.php index 8ebd04c47d..6bc589e106 100644 --- a/src/CoreShop/Bundle/FrontendBundle/Controller/RegisterController.php +++ b/src/CoreShop/Bundle/FrontendBundle/Controller/RegisterController.php @@ -142,6 +142,7 @@ public function passwordResetAction(Request $request) if ($handledForm->isSubmitted() && $handledForm->isValid()) { $resetPassword = $handledForm->getData(); + $customer->setPasswordResetHash(null); $customer->setPassword($resetPassword['password']); $customer->save();