로그아웃, 강제로그아웃시 자동로그인 해제기능

This commit is contained in:
leejinho 2020-01-17 10:03:07 +09:00
parent 1385c3761f
commit 660fce9dc6

View File

@ -110,5 +110,27 @@ export class AppAuthenticationService {
this.sessionStorageService.remove(KEY_LOGIN_INFO);
this.sessionStorageService.remove(KEY_URL_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
);
}
}