Skip to content

Commit 524fdc3

Browse files
committed
[hotfix] 소셜 로그인 성공 시 oauth 기준으로 이름 리턴
1 parent 0f32cec commit 524fdc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/moplus/moplus_server/client/submit/dto/response/DayProgress.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static DayProgress determineDayProgress(List<ProblemSubmitStatus> problem
1515
.allMatch(status -> status == ProblemSubmitStatus.NOT_STARTED);
1616

1717
boolean allFinished = problemStatuses.stream()
18-
.allMatch(status -> status == ProblemSubmitStatus.CORRECT || status == ProblemSubmitStatus.INCORRECT);
18+
.allMatch(status -> status == ProblemSubmitStatus.CORRECT || status == ProblemSubmitStatus.INCORRECT || status == ProblemSubmitStatus.RETRY_CORRECT);
1919

2020
if (allNotStarted) {
2121
return INCOMPLETE;

src/main/java/com/moplus/moplus_server/domain/auth/dto/response/LoginResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public record LoginResponse(
1111
) {
1212

1313
public static LoginResponse of(Member member, TokenResponse tokenPairResponse) {
14-
return new LoginResponse(member.getId(), member.getName(), member.getOauthInfo().getOauthEmail(),
14+
return new LoginResponse(member.getId(), member.getOauthInfo().getName(), member.getOauthInfo().getOauthEmail(),
1515
tokenPairResponse.accessToken(),
1616
tokenPairResponse.refreshToken());
1717
}

0 commit comments

Comments
 (0)