@trudb/tru-common-lib 0.0.719 → 0.0.720
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/esm2020/lib/components/login/services/tru-auth.mjs +3 -3
- package/esm2020/lib/components/toolbar/user-profile/tru-toolbar-user-profile.mjs +2 -2
- package/fesm2015/trudb-tru-common-lib.mjs +3 -3
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +3 -3
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/login/services/tru-auth.d.ts +1 -2
- package/package.json +1 -1
|
@@ -3728,9 +3728,9 @@ class TruAuth {
|
|
|
3728
3728
|
setUser() {
|
|
3729
3729
|
this.auth.setUser(this.user);
|
|
3730
3730
|
}
|
|
3731
|
-
logout(
|
|
3731
|
+
logout() {
|
|
3732
3732
|
return this.http
|
|
3733
|
-
.post(`${this.baseUrl}${TRU_AUTH_CONFIG.authUrl}/logout`,
|
|
3733
|
+
.post(`${this.baseUrl}${TRU_AUTH_CONFIG.authUrl}/logout`, null)
|
|
3734
3734
|
.pipe(tap(() => {
|
|
3735
3735
|
this.doLogoutAndRedirectToLogin();
|
|
3736
3736
|
}));
|
|
@@ -3783,7 +3783,7 @@ class TruToolbarUserProfile {
|
|
|
3783
3783
|
this.uiNotification.changePassword();
|
|
3784
3784
|
};
|
|
3785
3785
|
this.onLogoutButtonClicked = () => {
|
|
3786
|
-
this.auth.logout(
|
|
3786
|
+
this.auth.logout();
|
|
3787
3787
|
};
|
|
3788
3788
|
this.initial = user?.firstName ? user?.firstName.slice(0, 1).toUpperCase() : user?.username?.slice(0, 1).toUpperCase();
|
|
3789
3789
|
this.name = user?.firstName && user?.lastName ? user?.firstName + ' ' + user?.lastName : user?.username;
|