[DEV] try to prenvent connection LOOP
This commit is contained in:
parent
8990249bb8
commit
c18628e22c
@ -106,7 +106,9 @@ export class UserService {
|
|||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
// jump in the sign-in page (automatically of request remember-me)
|
// jump in the sign-in page (automatically of request remember-me)
|
||||||
if(rememberMe) {
|
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();
|
self.ssoService.requestSignIn();
|
||||||
reject();
|
reject();
|
||||||
}
|
}
|
||||||
@ -115,7 +117,9 @@ export class UserService {
|
|||||||
} else {
|
} else {
|
||||||
console.log(`Get previous connection ... `);
|
console.log(`Get previous connection ... `);
|
||||||
if(rememberMe) {
|
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();
|
self.ssoService.requestSignIn();
|
||||||
reject();
|
reject();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user