From d56bb7420184c0c2f451f4bcaa96c9b3b00c393d Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Tue, 14 Mar 2023 03:54:40 -0400 Subject: add admin API email endpoints (#22792) add email endpoint to admin API to ensure API parity with admin dashboard. --- modules/structs/user_email.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules') 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 -- cgit v1.2.3