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.
- package/fesm2022/ngx-sp-auth.mjs +21 -20
- package/fesm2022/ngx-sp-auth.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/ngx-sp-auth.mjs
CHANGED
|
@@ -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
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
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: () => {
|