AdminAPI: return user email
This commit is contained in:
parent
5e128a6be3
commit
20af025c65
|
@ -69,6 +69,7 @@ def render("show.json", %{user: user}) do
|
||||||
|
|
||||||
%{
|
%{
|
||||||
"id" => user.id,
|
"id" => user.id,
|
||||||
|
"email" => user.email,
|
||||||
"avatar" => avatar,
|
"avatar" => avatar,
|
||||||
"nickname" => user.nickname,
|
"nickname" => user.nickname,
|
||||||
"display_name" => display_name,
|
"display_name" => display_name,
|
||||||
|
|
|
@ -953,6 +953,7 @@ defp user_response(user, attrs \\ %{}) do
|
||||||
%{
|
%{
|
||||||
"deactivated" => user.deactivated,
|
"deactivated" => user.deactivated,
|
||||||
"id" => user.id,
|
"id" => user.id,
|
||||||
|
"email" => user.email,
|
||||||
"nickname" => user.nickname,
|
"nickname" => user.nickname,
|
||||||
"roles" => %{"admin" => false, "moderator" => false},
|
"roles" => %{"admin" => false, "moderator" => false},
|
||||||
"local" => user.local,
|
"local" => user.local,
|
||||||
|
|
Loading…
Reference in a new issue