mucking about trying to solve the weird 2fa issues, putting a pin in it for now tho

This commit is contained in:
Me
2022-12-07 18:25:15 +01:00
parent 1a584483e7
commit 6c3cad3b3d
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@
wrongCode = `Wrong code`;
}
if (response.status === 200) {
userLogout();
// userLogout();
push('/profile');
console.log('vaid Code for 2FA')
}

View File

@@ -150,7 +150,7 @@ export const primaryRoutes = {
const user = await fetch('http://transcendance:8080/api/v2/user')
.then((resp) => resp.json())
console.log('in /test what is in user')
console.log('in /profile what is in user')
console.log(user)
if (user && user.username)
@@ -167,7 +167,7 @@ export const primaryRoutes = {
const user = await fetch('http://transcendance:8080/api/v2/user')
.then((resp) => resp.json())
console.log('in /test what is in user')
console.log('in /profile/* what is in user')
console.log(user)
if (user && user.username)