chore: added gettext values and renamed rauthy container
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
carla 2025-07-02 13:11:15 +02:00 committed by carla
parent bdc250f2d6
commit d7ced0d9e5
8 changed files with 267 additions and 204 deletions

View file

@ -9,9 +9,9 @@ defmodule MvWeb.AuthController do
message =
case activity do
{:confirm_new_user, :confirm} -> "Your email address has now been confirmed"
{:password, :reset} -> "Your password has successfully been reset"
_ -> "You are now signed in"
{:confirm_new_user, :confirm} -> gettext("Your email address has now been confirmed")
{:password, :reset} -> gettext("Your password has successfully been reset")
_ -> gettext("You are now signed in")
end
conn
@ -33,14 +33,14 @@ defmodule MvWeb.AuthController do
caused_by: %Ash.Error.Forbidden{
errors: [%AshAuthentication.Errors.CannotConfirmUnconfirmedUser{}]
}
}} ->
}} -> gettext(
"""
You have already signed in another way, but have not confirmed your account.
You can confirm your account using the link we sent to you, or by resetting your password.
"""
""")
_ ->
"Incorrect email or password"
gettext("Incorrect email or password")
end
conn
@ -53,7 +53,7 @@ defmodule MvWeb.AuthController do
conn
|> clear_session(:mv)
|> put_flash(:info, "You are now signed out")
|> put_flash(:info, gettext("You are now signed out"))
|> redirect(to: return_to)
end
end