This commit is contained in:
Peter Maquiran
2022-04-21 17:00:15 +01:00
parent 4a3b83e6c5
commit 20da76a5bb
+5 -6
View File
@@ -104,18 +104,17 @@ export class LoginPage implements OnInit {
// login to API successfully
if (attempt) {
console.log(attempt)
if (attempt.UserId == SessionStore.user.UserId) {
await this.authService.SetSession(attempt, this.userattempt);
console.log(this.p.userPermission(this.p.permissionList.Chat.access));
if(attempt.ChatData){
await this.authService.loginChat(attempt.ChatData.data);
await this.authService.loginToChatWs();
try {
await this.authService.loginToChatWs();
} catch(e) {}
}
this.getToken();