mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
fix
This commit is contained in:
@@ -104,18 +104,17 @@ export class LoginPage implements OnInit {
|
|||||||
|
|
||||||
// login to API successfully
|
// login to API successfully
|
||||||
if (attempt) {
|
if (attempt) {
|
||||||
console.log(attempt)
|
|
||||||
|
|
||||||
if (attempt.UserId == SessionStore.user.UserId) {
|
if (attempt.UserId == SessionStore.user.UserId) {
|
||||||
|
|
||||||
await this.authService.SetSession(attempt, this.userattempt);
|
await this.authService.SetSession(attempt, this.userattempt);
|
||||||
|
|
||||||
console.log(this.p.userPermission(this.p.permissionList.Chat.access));
|
|
||||||
|
|
||||||
|
|
||||||
if(attempt.ChatData){
|
if(attempt.ChatData){
|
||||||
await this.authService.loginChat(attempt.ChatData.data);
|
await this.authService.loginChat(attempt.ChatData.data);
|
||||||
|
|
||||||
|
try {
|
||||||
await this.authService.loginToChatWs();
|
await this.authService.loginToChatWs();
|
||||||
|
} catch(e) {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getToken();
|
this.getToken();
|
||||||
|
|||||||
Reference in New Issue
Block a user