fims 암호화 모듈 적용

dev
Jonguk. Lim 6 months ago
parent 19d81dede5
commit 469ccbff2b

@ -7,8 +7,8 @@ import org.springframework.stereotype.Service;
import cokr.xit.adds.core.auth.dao.IAuthApiMapper;
import cokr.xit.adds.core.auth.service.IAuthApiService;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.util.CharsEncoder;
import egovframework.com.cmm.model.LoginVO;
import egovframework.com.cmm.util.EgovFileScrty;
@Service
//public class AuthApiService extends EgovAbstractServiceImpl implements IAuthApiService {
@ -26,7 +26,9 @@ public class AuthApiServiceBean extends AbstractServiceBean implements IAuthApiS
public LoginVO actionLogin(LoginVO vo) {
// 1. 입력한 비밀번호를 암호화한다.
String enpassword = EgovFileScrty.encryptPassword(vo.getPassword(), vo.getId());
// fims framework 암호화 적용
//String enpassword = EgovFileScrty.encryptPassword(vo.getPassword(), vo.getId());
String enpassword = new CharsEncoder().encode(vo.getPassword());
vo.setPassword(enpassword);
// 2. 아이디와 암호화된 비밀번호가 DB와 일치하는지 확인한다.

@ -19,7 +19,7 @@
FROM tb_user
WHERE user_acnt = #{id}
AND passwd = #{password}
AND stts = 'P'
AND stts = 'A'
/*
SELECT user_id AS id

@ -133,3 +133,16 @@ WITH RECURSIVE temp (
from temp
order by temp.path;
SELECT user_acnt AS id
, user_nm AS name
, passwd AS password
, rsdnt_no AS ihidnum
, eml_adrs AS email
, 'USR' AS userSe
, org_id AS orgnzt_id
, user_id AS esntl_id
FROM tb_user
WHERE user_acnt = 'admin'
-- AND passwd = ?
AND stts = 'P'

Loading…
Cancel
Save