AdminAPI: return user email

This commit is contained in:
Alex Gleason 2021-01-06 11:30:32 -06:00
parent 5e128a6be3
commit 20af025c65
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 0 deletions

View File

@ -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,

View File

@ -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,