mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-20 00:20:59 +00:00
Pleroma.Web.AdminAPI.AdminAPIController: user_create statement format
This commit is contained in:
parent
f48062488e
commit
a87ed2fad6
1 changed files with 3 additions and 4 deletions
|
@ -20,10 +20,9 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
|
||||||
|> json(nickname)
|
|> json(nickname)
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_create(
|
def user_create(conn, %{
|
||||||
conn,
|
user: %{"nickname" => nickname, "email" => email, "password" => password} = user
|
||||||
%{user: %{"nickname" => nickname, "email" => email, "password" => password} = user}
|
}) do
|
||||||
) do
|
|
||||||
new_user = %User{
|
new_user = %User{
|
||||||
nickname: nickname,
|
nickname: nickname,
|
||||||
name: user.name || nickname,
|
name: user.name || nickname,
|
||||||
|
|
Loading…
Reference in a new issue