mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
improve
This commit is contained in:
@@ -115,10 +115,6 @@ export class LoginPage implements OnInit {
|
|||||||
|
|
||||||
loader.remove()
|
loader.remove()
|
||||||
|
|
||||||
// login to API successfully
|
|
||||||
|
|
||||||
console.log(attempt,'!!::!!');
|
|
||||||
|
|
||||||
if (attempt) {
|
if (attempt) {
|
||||||
if (attempt.UserId == SessionStore.user.UserId) {
|
if (attempt.UserId == SessionStore.user.UserId) {
|
||||||
|
|
||||||
@@ -126,10 +122,9 @@ export class LoginPage implements OnInit {
|
|||||||
|
|
||||||
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();
|
|
||||||
// } catch(e) {}
|
|
||||||
|
|
||||||
|
await this.authService.loginToChatWs();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getToken();
|
this.getToken();
|
||||||
|
|||||||
Reference in New Issue
Block a user