bugfix :: clear setting & logout >> setting null exception.
This commit is contained in:
parent
9b02d4bbfb
commit
4900ba729c
|
@ -118,21 +118,23 @@ export class AppAuthenticationService {
|
||||||
environment.customConfig.appKey
|
environment.customConfig.appKey
|
||||||
);
|
);
|
||||||
|
|
||||||
appUserInfo = {
|
if (!!appUserInfo) {
|
||||||
...appUserInfo,
|
appUserInfo = {
|
||||||
settings: {
|
...appUserInfo,
|
||||||
...appUserInfo.settings,
|
settings: {
|
||||||
general: {
|
...appUserInfo.settings,
|
||||||
...appUserInfo.settings.general,
|
general: {
|
||||||
autoLogin: false
|
...appUserInfo.settings.general,
|
||||||
|
autoLogin: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
};
|
|
||||||
|
|
||||||
this.localStorageService.encSet<AppUserInfo>(
|
this.localStorageService.encSet<AppUserInfo>(
|
||||||
KEY_APP_USER_INFO,
|
KEY_APP_USER_INFO,
|
||||||
appUserInfo,
|
appUserInfo,
|
||||||
environment.customConfig.appKey
|
environment.customConfig.appKey
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user