Finish authentication flow for 2FA
This commit is contained in:
parent
7f3ab8aadf
commit
212773d63c
9 changed files with 232 additions and 162 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue