[angular-16-irish-monitor | DONE | CHANGED] user management service: better clean up reload urls
This commit is contained in:
parent
f07d1778c5
commit
adb4c86d2f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue