mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
fix
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user