Improve login

This commit is contained in:
Peter Maquiran
2021-07-18 14:21:56 +01:00
parent dba721ec50
commit c2e7ea799e
2 changed files with 20 additions and 5 deletions
+7 -5
View File
@@ -26,7 +26,6 @@ export class LoginPage implements OnInit {
hasSession = false
setPin = false
constructor(
private notificatinsservice: NotificationsService,
private router: Router,
@@ -208,10 +207,13 @@ export class LoginPage implements OnInit {
localStorage.setItem('PIN', encrypted)
// this.router.navigate(['/home/events']);
window.location.pathname = '/home/events'
//
if(window['cy']) {
this.router.navigate(['/home/events']);
} else {
window.location.pathname = '/home/events'
}
}
}