bug fixed

This commit is contained in:
richard-loafle 2020-04-07 14:43:00 +09:00
parent 01fa50b480
commit 68099247c1

View File

@ -89,16 +89,16 @@ export class AppAuthenticationService {
) {
const prevLoginSession = this.loginSession;
loginSession = {
const newLoginSession = {
...prevLoginSession,
...loginSession,
localeCode: LocaleCode.Korean
};
const encLoginPw = PasswordUtil.encrypt(loginSession.loginPw);
const encLoginPw = PasswordUtil.encrypt(newLoginSession.loginPw);
this.loginSession = {
...loginSession,
initPw: loginSession.loginId === loginSession.loginPw,
...newLoginSession,
initPw: newLoginSession.loginId === newLoginSession.loginPw,
loginPw: encLoginPw
};