Finish authentication flow for 2FA

This commit is contained in:
Dane Everitt 2019-06-22 13:33:11 -07:00
parent 7f3ab8aadf
commit 212773d63c
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
9 changed files with 232 additions and 162 deletions

View file

@ -12,8 +12,6 @@ type State = Readonly<{
}>;
export default class LoginContainer extends React.PureComponent<RouteComponentProps, State> {
username = React.createRef<HTMLInputElement>();
state: State = {
isLoading: false,
};
@ -33,7 +31,7 @@ export default class LoginContainer extends React.PureComponent<RouteComponentPr
}
this.props.history.replace('/login/checkpoint', {
token: response.token,
token: response.confirmationToken,
});
})
.catch(error => this.setState({