mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
dont call session expired screen when already in the login page
This commit is contained in:
@@ -136,6 +136,8 @@ export class TokenInterceptor implements HttpInterceptor {
|
|||||||
console.log("refresh token error",error)
|
console.log("refresh token error",error)
|
||||||
SessionStore.setInativity(false)
|
SessionStore.setInativity(false)
|
||||||
|
|
||||||
|
if(window.location.pathname.includes('/home/')) {
|
||||||
|
|
||||||
const sessionExpiredMessage =
|
const sessionExpiredMessage =
|
||||||
'A sua sessão expirou. Por favor, faça login novamente para continuar.';
|
'A sua sessão expirou. Por favor, faça login novamente para continuar.';
|
||||||
const goToAuth = () => {
|
const goToAuth = () => {
|
||||||
@@ -148,6 +150,7 @@ export class TokenInterceptor implements HttpInterceptor {
|
|||||||
console.log('sessionExpiredModal', this.sessionExpiredModal)
|
console.log('sessionExpiredModal', this.sessionExpiredModal)
|
||||||
this.roomLocalRepository.clear();
|
this.roomLocalRepository.clear();
|
||||||
void this.sessionExpiredModal.present(sessionExpiredMessage, goToAuth);
|
void this.sessionExpiredModal.present(sessionExpiredMessage, goToAuth);
|
||||||
|
}
|
||||||
return of(false);
|
return of(false);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user