Skip to content

Commit

Permalink
Merge pull request #1631 from dpfaffenbauer/issue/1611
Browse files Browse the repository at this point in the history
[FrontendBundle] clear password reset hash after reset
  • Loading branch information
dpfaffenbauer authored May 11, 2021
2 parents 8a89697 + 02ef169 commit 832f8f0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 832f8f0

Please sign in to comment.