권한 미부여 사용자 메세지 보강
This commit is contained in:
parent
07519ac507
commit
78f31798be
@ -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>
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -81,9 +81,20 @@ public class CustomAuthenticationProvider implements AuthenticationProvider
|
||||
UserDetails info = userDetailService.loadUserByUsername(username); // 사용자 정보 추출
|
||||
|
||||
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");
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new UsernameNotFoundException("-4:user role not found");
|
||||
}
|
||||
}
|
||||
|
||||
// 패스워드 일치 여부 확인
|
||||
log.info("입력 username => {} ", username);
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -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[
|
||||
|
||||
Loading…
Reference in New Issue
Block a user