Commit 4476664f by Kim Jinsung

パスワード暗号化処理問題対応

アプリロックの場合、サービスオプション取得できない問題対応
parent 214f0848
...@@ -267,7 +267,7 @@ public class SecurityUtil { ...@@ -267,7 +267,7 @@ public class SecurityUtil {
if (ABVDataCache.getInstance().serviceOption.isAddUserPasswordSalt()) { if (ABVDataCache.getInstance().serviceOption.isAddUserPasswordSalt()) {
String salt = getHashedSalt(loginId); String salt = getHashedSalt(loginId);
try { try {
return MD5.getMd5Hash(loginId + salt); return MD5.getMd5Hash(password + salt);
} catch (NoSuchAlgorithmException e) { } catch (NoSuchAlgorithmException e) {
throw new ABVRuntimeException(e); throw new ABVRuntimeException(e);
} }
......
...@@ -16,6 +16,7 @@ import jp.agentec.abook.abv.bl.common.exception.AcmsException; ...@@ -16,6 +16,7 @@ import jp.agentec.abook.abv.bl.common.exception.AcmsException;
import jp.agentec.abook.abv.bl.common.exception.NetworkDisconnectedException; import jp.agentec.abook.abv.bl.common.exception.NetworkDisconnectedException;
import jp.agentec.abook.abv.bl.common.log.Logger; import jp.agentec.abook.abv.bl.common.log.Logger;
import jp.agentec.abook.abv.bl.common.util.SecurityUtil; import jp.agentec.abook.abv.bl.common.util.SecurityUtil;
import jp.agentec.abook.abv.bl.data.ABVDataCache;
import jp.agentec.abook.abv.bl.data.dao.AbstractDao; import jp.agentec.abook.abv.bl.data.dao.AbstractDao;
import jp.agentec.abook.abv.bl.data.dao.AcmsDao; import jp.agentec.abook.abv.bl.data.dao.AcmsDao;
import jp.agentec.abook.abv.bl.data.dao.MemberInfoDao; import jp.agentec.abook.abv.bl.data.dao.MemberInfoDao;
...@@ -172,6 +173,10 @@ public class LoginActivity extends ABVLoginActivity { ...@@ -172,6 +173,10 @@ public class LoginActivity extends ABVLoginActivity {
// 一定時間経過後、アプリロックか強制ログアウトの状態かチェックする // 一定時間経過後、アプリロックか強制ログアウトの状態かチェックする
oldMemberInfoDto = AbstractDao.getDao(MemberInfoDao.class).getMemberInfo(); oldMemberInfoDto = AbstractDao.getDao(MemberInfoDao.class).getMemberInfo();
if (oldMemberInfoDto != null) { if (oldMemberInfoDto != null) {
//サービスオプション情報をキャッシュにセット
final ABVDataCache dataCache = ABVDataCache.getInstance();
dataCache.refreshServiceOptions();
// ユーザが一定時間経過後アプリロックの状態であるかチェック // ユーザが一定時間経過後アプリロックの状態であるかチェック
if (oldMemberInfoDto.loginStatus == LoginStatus.LimitLogin.statusCode()) { if (oldMemberInfoDto.loginStatus == LoginStatus.LimitLogin.statusCode()) {
mEdtLoginId.setText(oldMemberInfoDto.loginId); mEdtLoginId.setText(oldMemberInfoDto.loginId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment