Skip to content
Snippets Groups Projects
Commit 114d867f authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #15308 TIME 0:30 fix logout in process

parent cbb0d4a2
No related branches found
No related tags found
No related merge requests found
......@@ -106,8 +106,17 @@ export class AuthService {
if (['cas', 'keycloak'].indexOf(this.authMode) > -1 && !forcePageLogin) {
this.SsoLogout(cleanUrl);
} else {
this.redirectAfterLogout(cleanUrl);
await this.router.navigate(['/login']);
// AVOID UNLOCK ON DESROY COMPONENT
if (['process', 'signatureBook'].indexOf(this.router.url.split('/')[1]) > -1) {
this.router.navigate(['/home']);
setTimeout(() => {
this.redirectAfterLogout(cleanUrl);
this.router.navigate(['/login']);
}, 500);
} else {
this.redirectAfterLogout(cleanUrl);
await this.router.navigate(['/login']);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment