Improve login

This commit is contained in:
Peter Maquiran
2021-09-02 12:17:14 +01:00
parent 3614a2eba7
commit 1f2631fcdf
10 changed files with 51 additions and 75 deletions
+2 -3
View File
@@ -11,7 +11,6 @@ import { JsonStore } from '../../services/jsonStore.service';
import { StorageService } from '../../services/storage.service';
import { NotificationsService } from '../../services/notifications.service';
import { SessionStore } from 'src/app/store/session.service';
import { synchro } from 'src/app/services/socket/synchro.service';
@Component({
selector: 'app-profile',
@@ -43,7 +42,7 @@ export class ProfilePage implements OnInit {
private zone: NgZone,
private notificationservice: NotificationsService,
private platform: Platform,
private notificationsService: NotificationsService,
private notificationsService: NotificationsService,
) {
this.loggeduser = authService.ValidatedUser;
@@ -222,7 +221,7 @@ export class ProfilePage implements OnInit {
SessionStore.setInativity(false)
setTimeout(() => {
this.router.navigate(['/login']);
this.router.navigateByUrl('/', { replaceUrl: true });
}, 100)
}