mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
improve
This commit is contained in:
@@ -116,17 +116,19 @@ export class LoginPage implements OnInit {
|
||||
loader.remove()
|
||||
|
||||
// login to API successfully
|
||||
|
||||
console.log(attempt,'!!::!!');
|
||||
|
||||
if (attempt) {
|
||||
if (attempt.UserId == SessionStore.user.UserId) {
|
||||
|
||||
await this.authService.SetSession(attempt, this.userattempt);
|
||||
|
||||
if(attempt.ChatData){
|
||||
if(attempt.ChatData) {
|
||||
await this.authService.loginChat(attempt.ChatData.data);
|
||||
|
||||
//try {
|
||||
await this.authService.loginToChatWs();
|
||||
// } catch(e) {}
|
||||
// } catch(e) {}
|
||||
|
||||
}
|
||||
|
||||
@@ -148,7 +150,7 @@ export class LoginPage implements OnInit {
|
||||
this.changeProfileService.run();
|
||||
|
||||
|
||||
if(attempt.ChatData){
|
||||
if(attempt.ChatData) {
|
||||
await this.authService.loginChat(attempt.ChatData.data);
|
||||
await this.authService.loginToChatWs();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user