Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Password Reset validation messages are not shown #2618

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

billmn
Copy link
Contributor

@billmn billmn commented Oct 8, 2020

Bug Description

Password Reset validation messages are not shown after an invalid submit.

How to Reproduce

Try to submit the "Forgot Your Password" form without fill the email field.

Environment

Statamic 3.0.16 Pro
Laravel 8.9.0
PHP 7.4.9
No addons installed

What I have fixed

“Forgot password” view retrieve errors from the "default" validation bag but it uses a custom one:

$e->errorBag = 'user.forgot_password';

UI: “Forgot” and “Reset” password views display validation errors above fields while in CP error messages are displayed below.

“Forgot password” uses a custom validation bag: https://github.com/statamic/cms/blob/e923a27b35d8711337f422bcd7a64cdbf621f5b4/src/Auth/SendsPasswordResetEmails.php#L64

“Forgot” and “Reset” password views show validation error above fields while in CP error messages are shown below.
@jasonvarga jasonvarga merged commit 4e29c18 into statamic:master Oct 13, 2020
@jasonvarga
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants