[DEV] try to prenvent connection LOOP

This commit is contained in:
Edouard DUPIN 2022-06-08 00:28:39 +02:00
parent 8990249bb8
commit c18628e22c

View File

@ -106,7 +106,9 @@ export class UserService {
}).catch(() => {
// jump in the sign-in page (automatically of request remember-me)
if(rememberMe) {
// just to the sso !!!
// jump to the sso !!! (remove local data to prevent login loop)
this.storageService.remove(this.cookiesRememberMe);
this.storageService.removeSession(this.cookiesToken);
self.ssoService.requestSignIn();
reject();
}
@ -115,7 +117,9 @@ export class UserService {
} else {
console.log(`Get previous connection ... `);
if(rememberMe) {
// just to the sso !!!
// jump to the sso !!! (remove local data to prevent login loop)
this.storageService.remove(this.cookiesRememberMe);
this.storageService.removeSession(this.cookiesToken);
self.ssoService.requestSignIn();
reject();
}