added a few things back that i had deleted before when fixing 502, mainly looking at login fetch, so far everything works, no 502 and livereload is sorta a thing

This commit is contained in:
Me
2022-11-23 02:53:32 +01:00
parent c35bbcefa6
commit 78687a3daa
3 changed files with 26 additions and 16 deletions

View File

@@ -34,12 +34,12 @@ export class AuthenticationController {
console.log('ON EST DANS REDIRECT AUTH CONTROLLER');
console.log('On redirige');
if (request.user.isEnabledTwoFactorAuth === false)
return response.status(200).redirect('http://transcendance:8080');
return response.status(200).redirect('http://transcendance:8080/#/profile');
return response.status(200).redirect('http://transcendance:8080/#/2fa');
}
/**
* GET /api/v2/auth/logout
* POST /api/v2/auth/logout
* Route pour déconnecter l'utilisateur
*/
@Post('logout')