@fluxhub/fluxhub-lib 1.0.243 → 1.0.244
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/bundles/fluxhub-fluxhub-lib.umd.js +0 -48
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/coverage.html +1 -1
- package/docs/injectables/AuthenticationService.html +0 -36
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/services/login.service.js +1 -48
- package/esm5/lib/services/login.service.js +1 -51
- package/fesm2015/fluxhub-fluxhub-lib.js +1 -46
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +0 -48
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/services/login.service.d.ts +0 -1
- package/package.json +1 -1
|
@@ -3335,50 +3335,6 @@ var AuthenticationService = /** @class */ (function () {
|
|
|
3335
3335
|
throw err;
|
|
3336
3336
|
}));
|
|
3337
3337
|
};
|
|
3338
|
-
/**
|
|
3339
|
-
* @return {?}
|
|
3340
|
-
*/
|
|
3341
|
-
AuthenticationService.prototype.login_sa = /**
|
|
3342
|
-
* @return {?}
|
|
3343
|
-
*/
|
|
3344
|
-
function () {
|
|
3345
|
-
if (this.checkCredentials())
|
|
3346
|
-
return;
|
|
3347
|
-
/** @type {?} */
|
|
3348
|
-
var vars = window
|
|
3349
|
-
.location
|
|
3350
|
-
.href
|
|
3351
|
-
.split(/[\&?]+/);
|
|
3352
|
-
/** @type {?} */
|
|
3353
|
-
var altripar = "";
|
|
3354
|
-
/** @type {?} */
|
|
3355
|
-
var b_found = false;
|
|
3356
|
-
for (var i = 0; i < vars.length; i++) {
|
|
3357
|
-
if (vars[i].substring(0, 2) == "u=") {
|
|
3358
|
-
/** @type {?} */
|
|
3359
|
-
var p = vars[i].split("=")[1];
|
|
3360
|
-
//console.log(p);
|
|
3361
|
-
this.username = this.uti_s.decrypt(decodeURI(p));
|
|
3362
|
-
//console.log(this.username);
|
|
3363
|
-
b_found = true;
|
|
3364
|
-
}
|
|
3365
|
-
else {
|
|
3366
|
-
altripar = altripar + vars[i];
|
|
3367
|
-
}
|
|
3368
|
-
}
|
|
3369
|
-
if (!b_found) {
|
|
3370
|
-
/** @type {?} */
|
|
3371
|
-
var r_url = encodeURI(window.location.href).replace('#', '%23');
|
|
3372
|
-
if (r_url.indexOf('?') == -1)
|
|
3373
|
-
r_url = r_url + '?';
|
|
3374
|
-
this.url = 'http://csaportale.ceramicasantagostino.it/homepage_new.nsf/OK?OpenForm&redirect=' + r_url;
|
|
3375
|
-
// console.log(post_v);
|
|
3376
|
-
window.location.href = (this.url);
|
|
3377
|
-
}
|
|
3378
|
-
else {
|
|
3379
|
-
this.login(this.username, 'jacoèp');
|
|
3380
|
-
}
|
|
3381
|
-
};
|
|
3382
3338
|
/**
|
|
3383
3339
|
* @param {?} email
|
|
3384
3340
|
* @param {?=} displayError
|
|
@@ -3523,10 +3479,6 @@ var AuthenticationService = /** @class */ (function () {
|
|
|
3523
3479
|
if ('/login' != this.router.url && this.router.url.indexOf('/rp/') == -1)
|
|
3524
3480
|
this.goto_after = window.location.toString();
|
|
3525
3481
|
if (localStorage.getItem(this.app_s.COMPANY_KEY + "token") === null) {
|
|
3526
|
-
if (this.app_s.LOGIN_EXT == 1) {
|
|
3527
|
-
this.login_sa();
|
|
3528
|
-
return false;
|
|
3529
|
-
}
|
|
3530
3482
|
if (this.router.url.indexOf('/rp/') == -1)
|
|
3531
3483
|
this.router.navigate(['login']);
|
|
3532
3484
|
return false;
|