mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-27 09:15:07 +01:00
Pleroma.Web.AdminAPI.AdminAPIController: user_create statement format
This commit is contained in:
parent
f48062488e
commit
a87ed2fad6
@ -20,10 +20,9 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController 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,
|
||||
|
Loading…
Reference in New Issue
Block a user