Skip to content

Commit c597045

Browse files
committed
fix: 구글 이메일/이름 뒤바뀜 수정
1 parent e88ee61 commit c597045

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ configurations {
2020
}
2121
}
2222

23+
configurations.all {
24+
exclude group: 'commons-logging', module: 'commons-logging'
25+
}
26+
2327
repositories {
2428
mavenCentral()
2529
}

src/main/java/apptive/team5/oauth2/dto/GoogleOAuth2Rep.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ public String getProviderId() {
1919

2020
@Override
2121
public String getUsername() {
22-
return payload.getEmail();
22+
return (String) payload.get("name");
2323
}
2424

2525
@Override
2626
public String getEmail() {
27-
return (String) payload.get("name");
27+
return payload.getEmail();
2828
}
2929
}

0 commit comments

Comments
 (0)