mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -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:
parent
8d87eedcb4
commit
7ef520c2ea
1 changed files with 9 additions and 0 deletions
|
@ -150,6 +150,15 @@ export default class App extends Component {
|
||||||
this.hasError({errorType: 'no-input', data: 'password'}) ||
|
this.hasError({errorType: 'no-input', data: 'password'}) ||
|
||||||
this.hasError({errorType: 'no-input', data: 'name'})
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue