forked from AkkomaGang/akkoma
formatting
This commit is contained in:
parent
ffd9ad1f0c
commit
8c0c930041
1 changed files with 4 additions and 3 deletions
|
@ -134,9 +134,10 @@ def register_user(params) do
|
||||||
}
|
}
|
||||||
|
|
||||||
# no need to query DB if registration is open
|
# no need to query DB if registration is open
|
||||||
token = unless @registrations_open || is_nil(tokenString) do
|
token =
|
||||||
Repo.get_by(UserInviteToken, %{token: tokenString})
|
unless @registrations_open || is_nil(tokenString) do
|
||||||
end
|
Repo.get_by(UserInviteToken, %{token: tokenString})
|
||||||
|
end
|
||||||
|
|
||||||
cond do
|
cond do
|
||||||
@registrations_open || (!is_nil(token) && !token.used) ->
|
@registrations_open || (!is_nil(token) && !token.used) ->
|
||||||
|
|
Loading…
Reference in a new issue