mucking about trying to solve the weird 2fa issues, putting a pin in it for now tho
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
wrongCode = `Wrong code`;
|
||||
}
|
||||
if (response.status === 200) {
|
||||
userLogout();
|
||||
// userLogout();
|
||||
push('/profile');
|
||||
console.log('vaid Code for 2FA')
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user