mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix bugs
This commit is contained in:
@@ -51,9 +51,16 @@ export class InactivityGuard implements CanActivate {
|
||||
|
||||
return false
|
||||
} else if(SessionStore.exist && SessionStore.user.Inactivity && !SessionStore.hasPin ) {
|
||||
// set pin
|
||||
return true
|
||||
} else if(SessionStore.exist && !SessionStore.user.Inactivity) {
|
||||
} else if(SessionStore.exist && !SessionStore.user.Inactivity && SessionStore.user.LoginPreference == 'Pin') {
|
||||
// inactivity login
|
||||
return true
|
||||
} else if (SessionStore.user.LoginPreference != 'Pin' && !SessionStore.user.Inactivity) {
|
||||
// no right to be in this page
|
||||
|
||||
this.router.navigateByUrl('/', { replaceUrl: true });
|
||||
return false
|
||||
}//Mobile or Tablet without session
|
||||
else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user