|
|
|
@ -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와 일치하는지 확인한다.
|
|
|
|
|