mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +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
e85a6a1cac
commit
42bed3c22d
@ -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