회원가입 추가, 역할 추가, spotlessApply 실행
This commit is contained in:
@@ -6,7 +6,6 @@ import com.kamco.cd.kamcoback.postgres.core.AuthCoreService;
|
||||
import com.kamco.cd.kamcoback.postgres.entity.UserEntity;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.security.crypto.password.PasswordEncoder;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@@ -16,7 +15,6 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
public class AuthService {
|
||||
|
||||
private final AuthCoreService authCoreService;
|
||||
private final PasswordEncoder passwordEncoder;
|
||||
|
||||
/**
|
||||
* 관리자 등록
|
||||
@@ -26,7 +24,6 @@ public class AuthService {
|
||||
*/
|
||||
@Transactional
|
||||
public UserEntity save(AuthDto.SaveReq saveReq) {
|
||||
saveReq.setUserPw(passwordEncoder.encode(saveReq.getUserPw()));
|
||||
return authCoreService.save(saveReq);
|
||||
}
|
||||
|
||||
@@ -38,9 +35,7 @@ public class AuthService {
|
||||
* @return
|
||||
*/
|
||||
public UserEntity update(Long id, AuthDto.SaveReq saveReq) {
|
||||
if (saveReq.getUserPw() != null) {
|
||||
saveReq.setUserPw(passwordEncoder.encode(saveReq.getUserPw()));
|
||||
}
|
||||
if (saveReq.getUserPw() != null) {}
|
||||
return authCoreService.update(id, saveReq);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user