diff options
author | techknowlogick <techknowlogick@gitea.io> | 2023-03-14 03:54:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 03:54:40 -0400 |
commit | d56bb7420184c0c2f451f4bcaa96c9b3b00c393d (patch) | |
tree | dcf3c0f696d2142e330d3d07b005db0bae8bbe97 /modules | |
parent | 03591f0f95823a0b1dcca969d2a3ed505c7e6d73 (diff) | |
download | gitea-d56bb7420184c0c2f451f4bcaa96c9b3b00c393d.tar.gz gitea-d56bb7420184c0c2f451f4bcaa96c9b3b00c393d.zip |
add admin API email endpoints (#22792)
add email endpoint to admin API to ensure API parity with admin
dashboard.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/structs/user_email.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/structs/user_email.go b/modules/structs/user_email.go index 6a11e040af..9319667e8f 100644 --- a/modules/structs/user_email.go +++ b/modules/structs/user_email.go @@ -1,4 +1,5 @@ // Copyright 2015 The Gogs Authors. All rights reserved. +// Copyright 2023 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package structs @@ -9,6 +10,8 @@ type Email struct { Email string `json:"email"` Verified bool `json:"verified"` Primary bool `json:"primary"` + UserID int64 `json:"user_id"` + UserName string `json:"username"` } // CreateEmailOption options when creating email addresses |