0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Fixed error handling for members reset password

no-issue

- Both input and form error was shown on submitting reset-password form
- Does not submit form anymore in case of validation errors
This commit is contained in:
Rish 2019-01-22 11:46:28 +05:30
parent 585eada1c3
commit e972483f6c

View file

@ -150,6 +150,15 @@ export default class App extends Component {
this.hasError({errorType: 'no-input', data: 'password'}) ||
this.hasError({errorType: 'no-input', data: 'name'})
);
case 'request-password-reset':
return (
this.hasError({errorType: 'no-input', data: 'email'})
);
case 'reset-password':
return (
this.hasError({errorType: 'no-input', data: 'password'})
);
break;
}
return false;
}