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

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"/>
</attributes>
</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.buildship.core.gradleclasspathcontainer">
<attributes>

View File

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

View File

@ -82,7 +82,18 @@ public class CustomAuthenticationProvider implements AuthenticationProvider
if(ObjectUtils.isEmpty(info))
{
throw new UsernameNotFoundException("-2:user not found");
String strExist = userDetailService.userExistYn(username);
log.info("한번보시다. => strExist : [{}] ", strExist);
if(strExist == null || strExist.equals(""))
{
throw new UsernameNotFoundException("-2:user not found");
}
else
{
throw new UsernameNotFoundException("-4:user role not found");
}
}
// 패스워드 일치 여부 확인

View File

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

View File

@ -24,6 +24,16 @@
]]>
</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">
<![CDATA[