Skip to content

Commit 1219a4a

Browse files
committed
improve support for Google
1 parent b0ff7b4 commit 1219a4a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

server/src/main/java/dev/findfirst/security/oauth2client/OauthUserService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public OAuth2User loadUser(OAuth2UserRequest userRequest) throws OAuth2Authentic
7272
Supplier<User> signup = () -> {
7373
try {
7474
if (email != null && !email.isEmpty()) {
75-
return signupUser(username, email);
75+
return signupUser(email, email);
7676
} else {
7777
return signupUser(username, oauth2PlaceholderEmail);
7878
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALTER TABLE "users"
2+
ALTER COLUMN username TYPE VARCHAR(255),
3+
ALTER COLUMN username SET NOT NULL;

0 commit comments

Comments
 (0)