We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9daf01f commit b7fc3d4Copy full SHA for b7fc3d4
src/main/java/life/mosu/mosuserver/application/oauth/OAuthUserPersistenceProcessor.java
@@ -23,17 +23,8 @@ public UserJpaEntity process(final OAuthUserInfo info) {
23
return userRepository.findByPhoneNumber(
24
PhoneNumberUtil.formatPhoneNumber(info.phoneNumber()))
25
.map(existingUser -> {
26
- switch (existingUser.getProvider()) {
27
- case MOSU:
28
- if (existingUser.isPendingUser()) {
29
- throw new OAuthException("DUPLICATE");
30
- }
31
- break;
32
- case KAKAO:
33
34
- throw new OAuthException("KAKAO_DUPLICATE");
35
36
+ if (existingUser.isMosuUser()) {
+ throw new OAuthException("DUPLICATE");
37
}
38
existingUser.updateOAuthUser(
39
info.gender(),
0 commit comments