diff --git a/src/app/pages/login/login.page.ts b/src/app/pages/login/login.page.ts index c99117ce5..2197ab7ae 100644 --- a/src/app/pages/login/login.page.ts +++ b/src/app/pages/login/login.page.ts @@ -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(); diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index a8ccf00ce..39a448aa0 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,7 +1,7 @@ export const environment = { production: true, apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/', - apiChatUrl: 'https://www.tabularium.pt/api/v1/', + apiChatUrl: 'https://gabinetedigitalchat.dyndns.info/api/v1/', domain: 'gabinetedigital.local', defaultuser: '', defaultuserpwd: '' diff --git a/src/environments/environment.ts b/src/environments/environment.ts index f87cd0d28..6b3c2fb1d 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -6,7 +6,8 @@ export const environment = { production: false, apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/', //apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/', - apiChatUrl: 'https://www.tabularium.pt/api/v1/', + apiChatUrl: 'https://gabinetedigitalchat.dyndns.info/api/v1/', + //apiChatUrl: 'https://www.tabularium.pt/api/v1/', /* apiChatUrl: 'http://chat.gabinetedigital.local:3000/api/v1/', */ domain: 'gabinetedigital.local', //gabinetedigital.local defaultuser: 'paulo.pinto@gabinetedigital.local',//paulo.pinto paulo.pinto@gabinetedigital.local