@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
|
@@ -2754,50 +2754,6 @@
|
|
|
2754
2754
|
throw err;
|
|
2755
2755
|
}));
|
|
2756
2756
|
};
|
|
2757
|
-
/**
|
|
2758
|
-
* @return {?}
|
|
2759
|
-
*/
|
|
2760
|
-
AuthenticationService.prototype.login_sa = /**
|
|
2761
|
-
* @return {?}
|
|
2762
|
-
*/
|
|
2763
|
-
function () {
|
|
2764
|
-
if (this.checkCredentials())
|
|
2765
|
-
return;
|
|
2766
|
-
/** @type {?} */
|
|
2767
|
-
var vars = window
|
|
2768
|
-
.location
|
|
2769
|
-
.href
|
|
2770
|
-
.split(/[\&?]+/);
|
|
2771
|
-
/** @type {?} */
|
|
2772
|
-
var altripar = "";
|
|
2773
|
-
/** @type {?} */
|
|
2774
|
-
var b_found = false;
|
|
2775
|
-
for (var i = 0; i < vars.length; i++) {
|
|
2776
|
-
if (vars[i].substring(0, 2) == "u=") {
|
|
2777
|
-
/** @type {?} */
|
|
2778
|
-
var p = vars[i].split("=")[1];
|
|
2779
|
-
//console.log(p);
|
|
2780
|
-
this.username = this.uti_s.decrypt(decodeURI(p));
|
|
2781
|
-
//console.log(this.username);
|
|
2782
|
-
b_found = true;
|
|
2783
|
-
}
|
|
2784
|
-
else {
|
|
2785
|
-
altripar = altripar + vars[i];
|
|
2786
|
-
}
|
|
2787
|
-
}
|
|
2788
|
-
if (!b_found) {
|
|
2789
|
-
/** @type {?} */
|
|
2790
|
-
var r_url = encodeURI(window.location.href).replace('#', '%23');
|
|
2791
|
-
if (r_url.indexOf('?') == -1)
|
|
2792
|
-
r_url = r_url + '?';
|
|
2793
|
-
this.url = 'http://csaportale.ceramicasantagostino.it/homepage_new.nsf/OK?OpenForm&redirect=' + r_url;
|
|
2794
|
-
// console.log(post_v);
|
|
2795
|
-
window.location.href = (this.url);
|
|
2796
|
-
}
|
|
2797
|
-
else {
|
|
2798
|
-
this.login(this.username, 'jacoèp');
|
|
2799
|
-
}
|
|
2800
|
-
};
|
|
2801
2757
|
/**
|
|
2802
2758
|
* @param {?} email
|
|
2803
2759
|
* @param {?=} displayError
|
|
@@ -2948,10 +2904,6 @@
|
|
|
2948
2904
|
if ('/login' != this.router.url && this.router.url.indexOf('/rp/') == -1)
|
|
2949
2905
|
this.goto_after = window.location.toString();
|
|
2950
2906
|
if (localStorage.getItem(this.app_s.COMPANY_KEY + "token") === null) {
|
|
2951
|
-
if (this.app_s.LOGIN_EXT == 1) {
|
|
2952
|
-
this.login_sa();
|
|
2953
|
-
return false;
|
|
2954
|
-
}
|
|
2955
2907
|
if (this.router.url.indexOf('/rp/') == -1)
|
|
2956
2908
|
this.router.navigate(['login']);
|
|
2957
2909
|
return false;
|