Bladeren bron

로그인 실패 시 메시지 수정

jsshin 4 jaren geleden
bovenliggende
commit
9ff83bbc50

+ 2 - 2
src/main/java/com/style24/front/support/security/TsfAuthenticationProvider.java

@@ -82,7 +82,7 @@ public class TsfAuthenticationProvider implements AuthenticationProvider {
 
 		if (loginInfo == null) {
 			log.info(String.format("Customer with ID=%s was not found!", loginId));
-			throw new TsfUsernameNotFoundException(message.getMessage("LOGN_0001"));
+			throw new TsfUsernameNotFoundException(message.getMessage("LOGN_0010"));
 		}
 
 		// 로그인 실패누적건수가 5회 이상이면
@@ -97,7 +97,7 @@ public class TsfAuthenticationProvider implements AuthenticationProvider {
 			log.info("Password is match?: {}", isMatch);
 
 			if (!isMatch) {
-				throw new BadCredentialsException(message.getMessage("LOGN_0002"));
+				throw new BadCredentialsException(message.getMessage("LOGN_0010"));
 			}
 		}
 

+ 1 - 1
src/main/resources/i18n/messages/message_ko_KR.properties

@@ -33,7 +33,7 @@ LOGN_0006=\uD734\uBA74 \uD68C\uC6D0\uC785\uB2C8\uB2E4.
 LOGN_0007=\uD0C8\uD1F4 \uD68C\uC6D0\uC785\uB2C8\uB2E4.
 LOGN_0008=\uC774\uBBF8 \uAC00\uC785\uD558\uC2E0 \uC774\uBA54\uC77C\uC774 \uC874\uC7AC\uD569\uB2C8\uB2E4.
 LOGN_0009=\uBCF8\uC778\uC778\uC99D\uC774 \uD544\uC694\uD55C \uD68C\uC6D0\uC785\uB2C8\uB2E4.
-
+LOGN_0010=\uD574\uB2F9 \uACC4\uC815\uC774 \uC5C6\uAC70\uB098 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.
 
 ##\uC7A5\uBC14\uAD6C\uB2C8
 CART_0001=\uC7A5\uBC14\uAD6C\uB2C8\uC5D0 \uB2F4\uACBC\uC2B5\uB2C8\uB2E4.