Skip to content

Commit 2ebdb02

Browse files
authored
[EC-237] feat: 학습자 등록 시 상태값 변경 (#247)
1 parent 5f7e555 commit 2ebdb02

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api/src/main/java/org/example/educheck/domain/member/service/AuthService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public RegisteredMemberResponseDto signUp(SignUpRequestDto requestDto) {
7777
Registration registration = Registration.builder()
7878
.student(savedStudent)
7979
.course(course)
80-
.registrationStatus(RegistrationStatus.PREVIOUS)
80+
.registrationStatus(RegistrationStatus.PROGRESS)
8181
.build();
8282
Registration savedRegistration = registrationRepository.save(registration);
8383

api/src/main/java/org/example/educheck/domain/member/service/MyService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import org.springframework.security.authentication.AuthenticationManager;
1010
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
1111
import org.springframework.security.core.Authentication;
12+
import org.springframework.security.core.context.SecurityContextHolder;
1213
import org.springframework.security.crypto.password.PasswordEncoder;
1314
import org.springframework.stereotype.Service;
1415
import org.springframework.transaction.annotation.Transactional;
@@ -54,7 +55,7 @@ public void updateMyProfile(Member member, UpdateMyProfileRequestDto requestDto)
5455
member.getEmail(), requestDto.getCurrentPassword())
5556
);
5657

57-
// SecurityContextHolder.getContext().setAuthentication(authentication); //TODO: 삭제?
58+
SecurityContextHolder.getContext().setAuthentication(authentication); //TODO: 삭제?
5859

5960
}
6061
memberRepository.save(member);

0 commit comments

Comments
 (0)