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();
+1 -1
View File
@@ -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: ''
+2 -1
View File
@@ -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