Skip to content

Commit

Permalink
Fix that password reset form was invalid all the time
Browse files Browse the repository at this point in the history
  • Loading branch information
pscheit committed Mar 25, 2024
1 parent fbb2f67 commit 8ca40e9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Controller/ResetPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ public function request(Request $request, MailerInterface $mailer, RecaptchaVeri
$form->handleRequest($request);

if ($form->isSubmitted() && $form->isValid()) {
try {
$recaptchaVerifier->verify();
} catch (RecaptchaException $e) {
$this->addFlash('error', 'Invalid ReCaptcha. Please try again.');

return $this->redirectToRoute('request_pwd_reset');
}

return $this->processSendingPasswordResetEmail(
$form->get('email')->getData(),
$mailer
Expand Down

0 comments on commit 8ca40e9

Please sign in to comment.