reset email form on success

This commit is contained in:
Vyrtsev Mikhail
2019-07-06 13:58:58 -05:00
committed by Umputun
parent 29322d920a
commit 8ea5936ab0
@@ -90,6 +90,7 @@ export class EmailLoginForm extends Component<Props, State> {
this.setState({ error: 'No user was found' });
return;
}
this.setState({ verificationSent: false, tokenValue: '' });
this.props.onSuccess && this.props.onSuccess(user);
} catch (e) {
this.setState({ error: extractErrorMessageFromResponse(e) });