|
@@ -67,10 +67,11 @@ public class LoginController extends LifeCenterController {
|
|
|
HashMap<String, String> accessMap = new HashMap<String, String>();
|
|
|
JSONObject json = new JSONObject();
|
|
|
|
|
|
-// dto.setPassword( LifeCenterFunction.aesEncrypt( config.aesKey, config.IV, dto.getPassword() ) );
|
|
|
+ //로그인 화면에서 넘어온 비밀번호값을 SHA256-암호화
|
|
|
String passwordVal = dto.getPassword();
|
|
|
dto.setPassword( LifeCenterFunction.sha256Encrypt( passwordVal ) );
|
|
|
|
|
|
+ //암호화한 비밀번호와 DB저장된 비밀번호값과 비교 로그인 체크
|
|
|
int total = loginService.selectMemberCount( dto );
|
|
|
|
|
|
if( total == 0 ) { //로그인실패시 log 남긴 후 failCount 처리
|