Skip to content

Commit 1be217a

Browse files
Thomasrludomikula
Thomasr
authored andcommitted
Add email field to user and match users by email
1 parent 5e30fc0 commit 1be217a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/authentication/util/AuthenticationUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ public static AuthUser mergeAuthUser(AuthUser low, AuthUser high) {
112112
return AuthUser.builder()
113113
.uid(high.getUid() != null ? high.getUid() : low.getUid())
114114
.username(high.getUsername() != null ? high.getUsername() : low.getUsername())
115+
.email(high.getEmail() != null ? high.getEmail() : low.getEmail())
115116
.avatar(high.getAvatar() != null ? high.getAvatar() : low.getAvatar())
116117
.rawUserInfo(high.getRawUserInfo() != null ? high.getRawUserInfo() : low.getRawUserInfo())
117118
.authToken(high.getAuthToken() != null ? high.getAuthToken() : low.getAuthToken())

0 commit comments

Comments
 (0)