로그아웃, 강제로그아웃시 자동로그인 해제기능
This commit is contained in:
parent
1385c3761f
commit
660fce9dc6
|
@ -110,5 +110,27 @@ export class AppAuthenticationService {
|
||||||
this.sessionStorageService.remove(KEY_LOGIN_INFO);
|
this.sessionStorageService.remove(KEY_LOGIN_INFO);
|
||||||
this.sessionStorageService.remove(KEY_URL_INFO);
|
this.sessionStorageService.remove(KEY_URL_INFO);
|
||||||
this.sessionStorageService.remove(KEY_AUTH_INFO);
|
this.sessionStorageService.remove(KEY_AUTH_INFO);
|
||||||
|
|
||||||
|
let appUserInfo = this.localStorageService.encGet<AppUserInfo>(
|
||||||
|
KEY_APP_USER_INFO,
|
||||||
|
environment.customConfig.appKey
|
||||||
|
);
|
||||||
|
|
||||||
|
appUserInfo = {
|
||||||
|
...appUserInfo,
|
||||||
|
settings: {
|
||||||
|
...appUserInfo.settings,
|
||||||
|
general: {
|
||||||
|
...appUserInfo.settings.general,
|
||||||
|
autoLogin: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
this.localStorageService.encSet<AppUserInfo>(
|
||||||
|
KEY_APP_USER_INFO,
|
||||||
|
appUserInfo,
|
||||||
|
environment.customConfig.appKey
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user