Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/phoenix_token_auth/registrator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule PhoenixTokenAuth.Registrator do
|> set_hashed_password
end

def set_hashed_password(changeset = %{errors: [_]}), do: changeset
def set_hashed_password(changeset = %{errors: [_ | _]}), do: changeset
def set_hashed_password(changeset = %{params: %{"password" => password}}) when password != "" and password != nil do
hashed_password = Util.crypto_provider.hashpwsalt(password)

Expand Down