패스워드 match 로직 변경

This commit is contained in:
Rinjae
2025-11-06 14:51:50 +09:00
parent fce34fd98b
commit e045fd256e
@@ -48,7 +48,10 @@ public class PortalAuthenticationManager implements AuthenticationManager {
// 비밀번호 검증
if (!passwordEncoder.matches(decodedPassword, user.getPassword())) {
throw new BadCredentialsException("아이디 또는 비밀번호가 일치하지 않습니다.");
// 암호화가 되어 있지 않을 수도 있어 그대로 비교 검증
if (!user.getPassword().equals(decodedPassword)) {
throw new BadCredentialsException("아이디 또는 비밀번호가 일치하지 않습니다.");
}
}
// DORMANT 상태 체크