ngx-sp-auth 4.23.15 → 4.23.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2391,26 +2391,27 @@ class LoginOSComponent {
2391
2391
  const currUsuario = this._storageService.user ?? undefined;
2392
2392
  this._authService.getAuthentication(this._loginOSModel.dominio).subscribe({
2393
2393
  next: () => {
2394
- if (currDominio === this._loginOSModel.dominio && currUsuario === this._loginOSModel.usuario) {
2395
- // VALIDAR ÚLTIMO ESTAB LOGADO
2396
- this._loginOSUtils.getEstabelecimentoSession('').subscribe({
2397
- next: res => {
2398
- // Atualiza os dados do estabelecimento na sessão
2399
- this._storageService.infraEstabId = res.InfraEstabId;
2400
- this._storageService.infraEstabNome = res.InfraEstabNome;
2401
- this._storageService.infraEmpresaId = res.InfraEmpresaId;
2402
- this._storageService.infraEmpresaNome = res.InfraEmpresaNome;
2403
- // Após, redireciona para a URL de destino
2404
- status = "keep";
2405
- this.redirect();
2406
- return;
2407
- },
2408
- error: error => {
2409
- this.loginStatus = "error";
2410
- this._authUtilService.showHTTPErrorOS(error);
2411
- }
2412
- });
2413
- }
2394
+ // Ignorar este trecho por agora, sempre realizar o login como se fosse novo, pois o logout atual está causando problemas de redirecionamento e perda de sessão.
2395
+ // if (currDominio === this._loginOSModel!.dominio && currUsuario === this._loginOSModel!.usuario) {
2396
+ // // VALIDAR ÚLTIMO ESTAB LOGADO
2397
+ // this._loginOSUtils.getEstabelecimentoSession('').subscribe({
2398
+ // next: res => {
2399
+ // // Atualiza os dados do estabelecimento na sessão
2400
+ // this._storageService.infraEstabId = res.InfraEstabId;
2401
+ // this._storageService.infraEstabNome = res.InfraEstabNome;
2402
+ // this._storageService.infraEmpresaId = res.InfraEmpresaId;
2403
+ // this._storageService.infraEmpresaNome = res.InfraEmpresaNome;
2404
+ // // Após, redireciona para a URL de destino
2405
+ // status = "keep";
2406
+ // this.redirect();
2407
+ // return;
2408
+ // },
2409
+ // error: error => {
2410
+ // this.loginStatus = "error";
2411
+ // this._authUtilService.showHTTPErrorOS(error);
2412
+ // }
2413
+ // })
2414
+ // }
2414
2415
  status = (!currDominio || !currUsuario) ? "none" : "updated";
2415
2416
  this._authService.loginOS(this._parmsLogin, this._loginOSModel.serialV6).subscribe({
2416
2417
  next: () => {