mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
AdminAPI: return user email
This commit is contained in:
parent
5e128a6be3
commit
20af025c65
2 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,7 @@ defmodule Pleroma.Web.AdminAPI.AccountView do
|
|||
|
||||
%{
|
||||
"id" => user.id,
|
||||
"email" => user.email,
|
||||
"avatar" => avatar,
|
||||
"nickname" => user.nickname,
|
||||
"display_name" => display_name,
|
||||
|
|
|
@ -953,6 +953,7 @@ defmodule Pleroma.Web.AdminAPI.UserControllerTest do
|
|||
%{
|
||||
"deactivated" => user.deactivated,
|
||||
"id" => user.id,
|
||||
"email" => user.email,
|
||||
"nickname" => user.nickname,
|
||||
"roles" => %{"admin" => false, "moderator" => false},
|
||||
"local" => user.local,
|
||||
|
|
Loading…
Reference in a new issue