회원관리 수정중, 토큰 response 수정
This commit is contained in:
@@ -25,7 +25,7 @@ public class CustomAuthenticationProvider implements AuthenticationProvider {
|
||||
// 1. 유저 조회
|
||||
MemberEntity member =
|
||||
membersRepository
|
||||
.findByEmployeeNo(username)
|
||||
.findByUserId(username)
|
||||
.orElseThrow(() -> new BadCredentialsException("ID 또는 비밀번호가 일치하지 않습니다."));
|
||||
|
||||
// 2. jBCrypt + 커스텀 salt 로 저장된 패스워드 비교
|
||||
|
||||
@@ -16,7 +16,6 @@ public class CustomUserDetails implements UserDetails {
|
||||
|
||||
@Override
|
||||
public Collection<? extends GrantedAuthority> getAuthorities() {
|
||||
// 권한을 Member에서 가져오는 경우 바꾸면 됩니다 — 일단 기본값
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user