mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03: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:
parent
8d87eedcb4
commit
7ef520c2ea
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user