[angular-16-irish-monitor | DONE | CHANGED] user management service: better clean up reload urls

This commit is contained in:
argirok 2024-01-12 11:26:16 +02:00
parent f07d1778c5
commit adb4c86d2f
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,7 @@ export class UserManagementService {
}
public login(redirect: string = null) {
Session.clearReloadUrl();
if(redirect) {
this.redirectUrl = redirect;
} else if (this.fixRedirectURL) {
@ -106,6 +107,7 @@ export class UserManagementService {
}
public logout() {
Session.clearReloadUrl();
this.setRedirectUrl();
Session.removeUser();
let logoutURL: string | string[] = isArray(properties.loginServiceURL)?properties.loginServiceURL.map(url => url + UserManagementService.LOGOUT):(properties.loginServiceURL + UserManagementService.LOGOUT);