forked from AkkomaGang/akkoma
code style
This commit is contained in:
parent
dcc54f8cfa
commit
a53d591ac5
1 changed files with 4 additions and 4 deletions
|
@ -167,10 +167,6 @@ def register_user(params) do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp registration_process(_registration_open = true, params, _token) do
|
|
||||||
create_user(params)
|
|
||||||
end
|
|
||||||
|
|
||||||
defp registration_process(registration_open, params, token)
|
defp registration_process(registration_open, params, token)
|
||||||
when registration_open == false or is_nil(registration_open) do
|
when registration_open == false or is_nil(registration_open) do
|
||||||
invite =
|
invite =
|
||||||
|
@ -193,6 +189,10 @@ defp registration_process(registration_open, params, token)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp registration_process(true, params, _token) do
|
||||||
|
create_user(params)
|
||||||
|
end
|
||||||
|
|
||||||
defp create_user(params) do
|
defp create_user(params) do
|
||||||
changeset = User.register_changeset(%User{}, params)
|
changeset = User.register_changeset(%User{}, params)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue