change chat API to gabinetedigitalchatx.dyndns,info

This commit is contained in:
tiago.kayaya
2021-12-29 15:48:35 +01:00
parent fa97b5ac8d
commit 2e05e9410c
3 changed files with 7 additions and 6 deletions
+4 -4
View File
@@ -90,13 +90,13 @@ export class LoginPage implements OnInit {
domainName: environment.domain,
BasicAuthKey: ""
}
const loader = this.toastService.loading()
let attempt = await this.authService.login(this.userattempt, {saveSession: false})
loader.remove()
if (attempt) {
if (attempt.UserId == SessionStore.user.UserId) {
@@ -104,7 +104,7 @@ export class LoginPage implements OnInit {
await this.authService.loginChat(this.userattempt);
this.getToken();
SessionStore.setInativity(true);
this.goback()
} else {
@@ -113,7 +113,7 @@ export class LoginPage implements OnInit {
window.localStorage.clear();
await this.authService.SetSession(attempt, this.userattempt);
this.changeProfileService.run()
await this.authService.loginChat(this.userattempt);
this.getToken();