fix login to rocket chat

This commit is contained in:
Peter Maquiran
2021-09-03 17:33:29 +01:00
parent b43693df2f
commit ba5e7f192e
2 changed files with 8 additions and 2 deletions
@@ -133,6 +133,11 @@ export class GabineteDigitalPage implements OnInit, DoCheck {
}
};
this.checkRoutes();
// this.eventoaprovacaostore.resetmd([])
// this.eventoaprovacaostore.resetpr([])
}
ngDoCheck(): void {
@@ -158,7 +163,7 @@ export class GabineteDigitalPage implements OnInit, DoCheck {
this.segmentVista = "listview";
}
else{
this.segmentVista = "boxview";
this.segmentVista = "boxview"
}
const pathname = window.location.pathname
+2 -1
View File
@@ -83,7 +83,7 @@ export class LoginPage implements OnInit {
if (attempt.UserId == SessionStore.user.UserId) {
await this.authService.SetSession(attempt, this.userattempt);
this.authService.loginChat(this.userattempt);
await this.authService.loginChat(this.userattempt);
this.getToken();
SessionStore.setInativity(true)
@@ -92,6 +92,7 @@ export class LoginPage implements OnInit {
SessionStore.delete()
window.localStorage.clear();
await this.authService.SetSession(attempt, this.userattempt);
await this.authService.loginChat(this.userattempt);
this.router.navigate(['/pin']);
}