aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2023-03-14 03:54:40 -0400
committerGitHub <noreply@github.com>2023-03-14 03:54:40 -0400
commitd56bb7420184c0c2f451f4bcaa96c9b3b00c393d (patch)
treedcf3c0f696d2142e330d3d07b005db0bae8bbe97 /modules
parent03591f0f95823a0b1dcca969d2a3ed505c7e6d73 (diff)
downloadgitea-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.go3
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