Verified Commit a87ed2fa authored by Haelwenn's avatar Haelwenn
Browse files

Pleroma.Web.AdminAPI.AdminAPIController: user_create statement format

parent f4806248
......@@ -20,10 +20,9 @@ def user_delete(conn, %{"nickname" => nickname}) do
|> json(nickname)
end
def user_create(
conn,
%{user: %{"nickname" => nickname, "email" => email, "password" => password} = user}
) do
def user_create(conn, %{
user: %{"nickname" => nickname, "email" => email, "password" => password} = user
}) do
new_user = %User{
nickname: nickname,
name: user.name || nickname,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment