This commit is contained in:
Eudes Inácio
2022-06-24 16:31:31 +01:00
3 changed files with 25 additions and 33 deletions
@@ -257,6 +257,7 @@ export class InactivityPage implements OnInit {
enterWithPasswordButton() {
this.enterWithPassword = true
this.router.navigate(['/']);
}
}
+2 -7
View File
@@ -115,10 +115,6 @@ export class LoginPage implements OnInit {
loader.remove()
// login to API successfully
console.log(attempt,'!!::!!');
if (attempt) {
if (attempt.UserId == SessionStore.user.UserId) {
@@ -126,10 +122,9 @@ export class LoginPage implements OnInit {
if(attempt.ChatData) {
await this.authService.loginChat(attempt.ChatData.data);
//try {
await this.authService.loginToChatWs();
// } catch(e) {}
await this.authService.loginToChatWs();
}
this.getToken();