diff options
author | Tobias Balle-Petersen <tobiasbp@gmail.com> | 2024-04-16 08:08:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 06:08:48 +0000 |
commit | 58b204b813cd3a97db904d889d552e64a7e398ff (patch) | |
tree | 68143d772e1c9877272bb746fd62a06f6c6730eb /modules | |
parent | 6ba0c371c21237376c292ee92ec067b4a1ef1218 (diff) | |
download | gitea-58b204b813cd3a97db904d889d552e64a7e398ff.tar.gz gitea-58b204b813cd3a97db904d889d552e64a7e398ff.zip |
Update API to return 'source_id' for users (#29718)
Using the API, a user's _source_id_ can be set in the _CreateUserOption_
model, but the field is not returned in the _User_ model.
This PR updates the _User_ model to include the field _source_id_ (The
ID of the Authentication Source).
Diffstat (limited to 'modules')
-rw-r--r-- | modules/structs/user.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/structs/user.go b/modules/structs/user.go index 21ecc1479e..ca6ab79944 100644 --- a/modules/structs/user.go +++ b/modules/structs/user.go @@ -20,6 +20,8 @@ type User struct { // the user's authentication sign-in name. // default: empty LoginName string `json:"login_name"` + // The ID of the user's Authentication Source + SourceID int64 `json:"source_id"` // the user's full name FullName string `json:"full_name"` // swagger:strfmt email |