Skip to content

Commit

Permalink
fix: @CookieValue required 속성 false로 변경
Browse files Browse the repository at this point in the history
@CookieValue required 속성 변경 통해 입력 관련 문제 GlobalExceptionHandler에서 처리하도록 설정
  • Loading branch information
bflykky committed Aug 2, 2024
1 parent e15a1ad commit 37d75a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class AuthController {
@Parameter(name = "temp-member-info", description = "리다이렉션 시에 쿠키로 넘겨준 사용자 정보가 담긴 jwt를 입력해 주세요.",
hidden = true, in = ParameterIn.COOKIE)
})
public ResultResponse<LoginInfo> signup(@CookieValue("temp-member-info") Cookie tempMemberInfoCookie,
public ResultResponse<LoginInfo> signup(@CookieValue(value = "temp-member-info", required = false) Cookie tempMemberInfoCookie,
@Valid @RequestBody MarketingAgreedRequest request) {
// 추후에 핸들러 처리로 바꿀까 생각 중
if (tempMemberInfoCookie == null) {
Expand Down

0 comments on commit 37d75a8

Please sign in to comment.