diff --git a/.drone.yml b/.drone.yml index c67fa87..dc8dcf0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -118,7 +118,7 @@ environment: steps: - name: renovate - image: renovate/renovate:40.62 + image: renovate/renovate:40.60 environment: RENOVATE_CONFIG_FILE: "renovate_backend_config.js" RENOVATE_TOKEN: diff --git a/.tool-versions b/.tool-versions index ea14b78..1ad7e35 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,3 +1,3 @@ elixir 1.18.3-otp-27 erlang 27.3.4 -just 1.42.1 +just 1.41.0 diff --git a/lib/accounts/user.ex b/lib/accounts/user.ex index 0de4a38..15e3a22 100644 --- a/lib/accounts/user.ex +++ b/lib/accounts/user.ex @@ -19,16 +19,15 @@ defmodule Mv.Accounts.User do Currently password and SSO with Rauthy as OIDC provider """ authentication do - session_identifier Application.compile_env(:mv, :session_identifier, :jti) + session_identifier Application.get_env(:mv, :session_identifier) tokens do enabled? true token_resource Mv.Accounts.Token - require_token_presence_for_authentication? Application.compile_env( + require_token_presence_for_authentication? Application.get_env( :mv, - :require_token_presence_for_authentication, - false + :require_token_presence_for_authentication ) store_all_tokens? true diff --git a/lib/mv/accounts/user/senders/send_new_user_confirmation_email.ex b/lib/mv/accounts/user/senders/send_new_user_confirmation_email.ex index 9e34f29..7fe229c 100644 --- a/lib/mv/accounts/user/senders/send_new_user_confirmation_email.ex +++ b/lib/mv/accounts/user/senders/send_new_user_confirmation_email.ex @@ -13,7 +13,7 @@ defmodule Mv.Accounts.User.Senders.SendNewUserConfirmationEmail do @impl true def send(user, token, _) do new() - # Replace with email from env + # TODO: Replace with your email |> from({"noreply", "noreply@example.com"}) |> to(to_string(user.email)) |> subject("Confirm your email address") diff --git a/lib/mv/accounts/user/senders/send_password_reset_email.ex b/lib/mv/accounts/user/senders/send_password_reset_email.ex index 7c33d2e..fe1cdb0 100644 --- a/lib/mv/accounts/user/senders/send_password_reset_email.ex +++ b/lib/mv/accounts/user/senders/send_password_reset_email.ex @@ -13,7 +13,7 @@ defmodule Mv.Accounts.User.Senders.SendPasswordResetEmail do @impl true def send(user, token, _) do new() - # Replace with email from env + # TODO: Replace with your email |> from({"noreply", "noreply@example.com"}) |> to(to_string(user.email)) |> subject("Reset your password") diff --git a/lib/mv_web/controllers/auth_controller.ex b/lib/mv_web/controllers/auth_controller.ex index a8375d1..42299f4 100644 --- a/lib/mv_web/controllers/auth_controller.ex +++ b/lib/mv_web/controllers/auth_controller.ex @@ -33,8 +33,8 @@ defmodule MvWeb.AuthController do caused_by: %Ash.Error.Forbidden{ errors: [%AshAuthentication.Errors.CannotConfirmUnconfirmedUser{}] } - }} -> - gettext(""" + }} -> 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. """)