mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Improve login
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user