|
|
|
|
@ -6,6 +6,7 @@ import { CredentialService } from '../../services/credential.service';
|
|
|
|
|
import { FormConstants } from '../../utils/enums';
|
|
|
|
|
import { ButtonManagementService } from '../../services/button-management.service';
|
|
|
|
|
import { StorageService } from '../services/storage.service';
|
|
|
|
|
import { LOGIN_ROUTE } from '../../utils/app.constants';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Injectable(
|
|
|
|
|
@ -49,7 +50,9 @@ export class AuthenticationGuard implements CanActivate {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
this.authService.logout();
|
|
|
|
|
if(this.router.url != LOGIN_ROUTE){
|
|
|
|
|
this.authService.logout();
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|