Skip to content

Commit

Permalink
Retain params when registration captcha was missing/incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
wmnnd committed Feb 8, 2025
1 parent 596bf82 commit 55dfd39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/keila_web/controllers/auth_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ defmodule KeilaWeb.AuthController do
end
else
{:error, changeset} =
params
user_params
|> Auth.User.creation_changeset()
|> Ecto.Changeset.add_error(:captcha, dgettext("auth", "Please complete the captcha."))
|> Ecto.Changeset.apply_action(:insert)
Expand Down

0 comments on commit 55dfd39

Please # to comment.