ui: remove old console logs
This commit is contained in:
parent
3b1a0e22a7
commit
23de3d68f3
4 changed files with 0 additions and 15 deletions
|
@ -44,17 +44,13 @@ const LoginContainer = ({ history }: RouteComponentProps) => {
|
|||
|
||||
login({ ...values, recaptchaData: token })
|
||||
.then(response => {
|
||||
console.log('wow!');
|
||||
console.log(response);
|
||||
if (response.complete) {
|
||||
console.log(`Redirecting to: ${response.intended || '/'}`);
|
||||
// @ts-ignore
|
||||
window.location = response.intended || '/';
|
||||
return;
|
||||
}
|
||||
|
||||
if (response.methods?.includes('webauthn')) {
|
||||
console.log('Redirecting to: /auth/login/key');
|
||||
history.replace('/auth/login/key', {
|
||||
token: response.confirmationToken,
|
||||
publicKey: response.publicKey,
|
||||
|
@ -64,12 +60,8 @@ const LoginContainer = ({ history }: RouteComponentProps) => {
|
|||
}
|
||||
|
||||
if (response.methods?.includes('totp')) {
|
||||
console.log('/auth/login/checkpoint');
|
||||
history.replace('/auth/login/checkpoint', { token: response.confirmationToken });
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('huh?');
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue