[DEV] try to prenvent connection LOOP
This commit is contained in:
parent
8990249bb8
commit
c18628e22c
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user