권한 미부여 사용자 메세지 보강

This commit is contained in:
nhj 2025-09-25 11:36:22 +09:00
parent 07519ac507
commit 78f31798be
5 changed files with 36 additions and 2 deletions

View File

@ -12,7 +12,11 @@
<attribute name="gradle_used_by_scope" value="main,test"/> <attribute name="gradle_used_by_scope" value="main,test"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-16/"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/openJDK16">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"> <classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer">
<attributes> <attributes>

View File

@ -36,6 +36,9 @@ public interface MemberDao
// 최종접속시간 획득 // 최종접속시간 획득
public String getLastConnectTime(String strUniqId); public String getLastConnectTime(String strUniqId);
// 2025.09.22 나혁제 사용자정보 등록여부
public String userExistYn(String strUniqId);
// 회원 lock 정보 확인 // 회원 lock 정보 확인
public LinkedHashMap<String, Object> selectLoginIncorrect(String strId); public LinkedHashMap<String, Object> selectLoginIncorrect(String strId);

View File

@ -81,9 +81,20 @@ public class CustomAuthenticationProvider implements AuthenticationProvider
UserDetails info = userDetailService.loadUserByUsername(username); // 사용자 정보 추출 UserDetails info = userDetailService.loadUserByUsername(username); // 사용자 정보 추출
if(ObjectUtils.isEmpty(info)) if(ObjectUtils.isEmpty(info))
{
String strExist = userDetailService.userExistYn(username);
log.info("한번보시다. => strExist : [{}] ", strExist);
if(strExist == null || strExist.equals(""))
{ {
throw new UsernameNotFoundException("-2:user not found"); throw new UsernameNotFoundException("-2:user not found");
} }
else
{
throw new UsernameNotFoundException("-4:user role not found");
}
}
// 패스워드 일치 여부 확인 // 패스워드 일치 여부 확인
log.info("입력 username => {} ", username); log.info("입력 username => {} ", username);

View File

@ -84,6 +84,12 @@ public class UserDetailService implements UserDetailsService
return memberVo; return memberVo;
} }
public String userExistYn(String strUniqId)
{
return memberDao.userExistYn(strUniqId);
}
// 회원 lock 정보 확인 // 회원 lock 정보 확인
public LinkedHashMap<String, Object> selectLoginIncorrect(String strId) public LinkedHashMap<String, Object> selectLoginIncorrect(String strId)
{ {

View File

@ -24,6 +24,16 @@
]]> ]]>
</select> </select>
<!-- 2025.09.22 나혁제 사용자정보 등록여부 -->
<select id="userExistYn" parameterType="string" resultType="string">
<![CDATA[
SELECT 'Y'
FROM COMVNUSERMASTER A
WHERE A.USER_ID = #{loginId}
]]>
</select>
<select id="getLastConnectTime" parameterType="string" resultType="string"> <select id="getLastConnectTime" parameterType="string" resultType="string">
<![CDATA[ <![CDATA[