File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -940,13 +940,15 @@ func ConvertUser(dbUser database.User) User {
940
940
hash := sha256 .Sum256 ([]byte (dbUser .Email [:atSymbol ]))
941
941
emailHashed = fmt .Sprintf ("%x%s" , hash [:], dbUser .Email [atSymbol :])
942
942
}
943
+ loginType := string (dbUser .LoginType )
943
944
return User {
944
945
ID : dbUser .ID ,
945
946
EmailHashed : emailHashed ,
946
947
RBACRoles : dbUser .RBACRoles ,
947
948
CreatedAt : dbUser .CreatedAt ,
948
949
Status : dbUser .Status ,
949
950
GithubComUserID : dbUser .GithubComUserID .Int64 ,
951
+ LoginType : & loginType ,
950
952
}
951
953
}
952
954
@@ -1149,6 +1151,9 @@ type User struct {
1149
1151
RBACRoles []string `json:"rbac_roles"`
1150
1152
Status database.UserStatus `json:"status"`
1151
1153
GithubComUserID int64 `json:"github_com_user_id"`
1154
+ // LoginType is nullable for backwards compatibility.
1155
+ // We used to not set it at all.
1156
+ LoginType * string `json:"login_type"`
1152
1157
}
1153
1158
1154
1159
type Group struct {
You can’t perform that action at this time.
0 commit comments