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 committed by Fabien O'Carroll
parent e85a6a1cac
commit 42bed3c22d

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;
}