We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
일반 로그인이 되지 않습니다.
회원을 탐색할때 provider를 null로 전달합니다.
@Transactional(readOnly = true) public LoginResponse login(LoginRequest request) { Member member = memberRepository.findMemberByEmailAndProvider(request.getEmail(), null) .orElseThrow(() -> new BadRequestException(MemberErrorCode.LOGIN_FAIL)); // ... }
provider 매개변수에 "local"을 전달합니다.
@Transactional(readOnly = true) public LoginResponse login(LoginRequest request) { Member member = memberRepository.findMemberByEmailAndProvider(request.getEmail(), LOCAL_PROVIDER) .orElseThrow(() -> new BadRequestException(MemberErrorCode.LOGIN_FAIL)); // ... return LoginResponse.from(jwt, OauthMemberResponse.from(member)); }
The text was updated successfully, but these errors were encountered:
#133 fix: 일반회원 가입시 provider를 "local"로 저장
ffb5658
#133 fix: 일반회원 가입시 provider를 "local"로 저장 (#134)
1431e21
yonghwankim-dev
Successfully merging a pull request may close this issue.
상황
일반 로그인이 되지 않습니다.
원인
회원을 탐색할때 provider를 null로 전달합니다.
해결방법
provider 매개변수에 "local"을 전달합니다.
The text was updated successfully, but these errors were encountered: