권한 미부여 사용자 메세지 보강
This commit is contained in:
parent
07519ac507
commit
78f31798be
@ -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>
|
||||||
|
|||||||
@ -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);
|
||||||
|
|
||||||
|
|||||||
@ -82,7 +82,18 @@ public class CustomAuthenticationProvider implements AuthenticationProvider
|
|||||||
|
|
||||||
if(ObjectUtils.isEmpty(info))
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 패스워드 일치 여부 확인
|
// 패스워드 일치 여부 확인
|
||||||
|
|||||||
@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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[
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user