Skip to content

Commit 866a56b

Browse files
authored
Merge pull request #42 from sumocoders/fix-forgot-password
Fix flash for forgot password
2 parents 1719728 + 9c3c893 commit 866a56b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Controller/User/ForgotPasswordController.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ public function __invoke(
2525

2626
if ($form->isSubmitted() && $form->isValid()) {
2727
$bus->dispatch($form->getData());
28+
29+
$this->addFlash(
30+
'success',
31+
$translator->trans('Password reset link successfully sent.')
32+
);
33+
34+
return $this->redirectToRoute('login');
2835
}
2936

3037
return $this->render('user/forgot.html.twig', [

translations/messages+intl-icu.nl.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ edit: 'Bewerk'
4343
'Change password': 'Verander wachtwoord'
4444
'Update password': 'Update wachtwoord'
4545
'New password': 'Nieuw wachtwoord'
46+
'Password reset link successfully sent.': 'Wachtwoord reset mail verstuurd.'
4647
'Confirm password': 'Bevestig wachtwoord'
4748
'Confirm your account': 'Bevestig je account'
4849
Confirm: 'Bevestig'

0 commit comments

Comments
 (0)