Pleroma.Web.AdminAPI.AdminAPIController: user_create statement format

This commit is contained in:
Haelwenn (lanodan) Monnier 2018-11-02 08:30:52 +01:00
parent f48062488e
commit a87ed2fad6
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View file

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