info-library 2.10.74 → 2.10.75
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/info-library.umd.js +19 -7
- package/bundles/info-library.umd.js.map +1 -1
- package/bundles/info-library.umd.min.js +1 -1
- package/bundles/info-library.umd.min.js.map +1 -1
- package/esm2015/service/authentication.service.js +17 -7
- package/fesm2015/info-library.js +16 -6
- package/fesm2015/info-library.js.map +1 -1
- package/info-library.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2036,19 +2036,31 @@
|
|
|
2036
2036
|
*/
|
|
2037
2037
|
InfoAuthenticationService.prototype.logout = function () {
|
|
2038
2038
|
var _this = this;
|
|
2039
|
-
|
|
2040
|
-
.
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2039
|
+
if (this.isLogged()) {
|
|
2040
|
+
this._http.post(this._plataforma.Config.webapiUrl + 'centrocontrole/usuario/Logout', null, { headers: this._dataService.getHeaderToken() })
|
|
2041
|
+
.subscribe(( /**
|
|
2042
|
+
* @return {?}
|
|
2043
|
+
*/function () {
|
|
2044
|
+
_this.removeSessao();
|
|
2045
|
+
_this._router.navigateByUrl('login').then(( /**
|
|
2046
|
+
* @param {?} r
|
|
2047
|
+
* @return {?}
|
|
2048
|
+
*/function (/**
|
|
2049
|
+
* @param {?} r
|
|
2050
|
+
* @return {?}
|
|
2051
|
+
*/ r) { location.reload(); }));
|
|
2052
|
+
}));
|
|
2053
|
+
}
|
|
2054
|
+
else {
|
|
2055
|
+
this.removeSessao();
|
|
2056
|
+
this._router.navigateByUrl('login').then(( /**
|
|
2045
2057
|
* @param {?} r
|
|
2046
2058
|
* @return {?}
|
|
2047
2059
|
*/function (/**
|
|
2048
2060
|
* @param {?} r
|
|
2049
2061
|
* @return {?}
|
|
2050
2062
|
*/ r) { location.reload(); }));
|
|
2051
|
-
}
|
|
2063
|
+
}
|
|
2052
2064
|
};
|
|
2053
2065
|
/**
|
|
2054
2066
|
* @param {?} url
|