diff --git a/src/Exception/ResetPasswordExceptionInterface.php b/src/Exception/ResetPasswordExceptionInterface.php index 93657f16..38e1a14e 100644 --- a/src/Exception/ResetPasswordExceptionInterface.php +++ b/src/Exception/ResetPasswordExceptionInterface.php @@ -14,5 +14,8 @@ */ interface ResetPasswordExceptionInterface extends \Throwable { + public const MESSAGE_PROBLEM_VALIDATE = 'There was a problem validating your password reset request'; + public const MESSAGE_PROBLEM_HANDLE = 'There was a problem handling your password reset request'; + public function getReason(): string; } diff --git a/src/Resources/translations/ResetPasswordBundle.en.xlf b/src/Resources/translations/ResetPasswordBundle.en.xlf index 9628ea6d..fd6c73d5 100644 --- a/src/Resources/translations/ResetPasswordBundle.en.xlf +++ b/src/Resources/translations/ResetPasswordBundle.en.xlf @@ -22,6 +22,30 @@ %count% minute|%count% minutes %count% minute|%count% minutes + + There was a problem validating your password reset request + There was a problem validating your password reset request + + + There was a problem handling your password reset request + There was a problem handling your password reset request + + + The link in your email is expired. Please try to reset your password again. + The link in your email is expired. Please try to reset your password again. + + + Please update the request_password_repository configuration in config/packages/reset_password.yaml to point to your "request password repository" service. + Please update the request_password_repository configuration in config/packages/reset_password.yaml to point to your "request password repository" service. + + + The reset password link is invalid. Please try to reset your password again. + The reset password link is invalid. Please try to reset your password again. + + + You have already requested a reset password email. Please check your email or try again soon. + You have already requested a reset password email. Please check your email or try again soon. +