diff --git a/lib/pow_assent/phoenix/controllers/registration_html.ex b/lib/pow_assent/phoenix/controllers/registration_html.ex index 1a92123..6d4839e 100644 --- a/lib/pow_assent/phoenix/controllers/registration_html.ex +++ b/lib/pow_assent/phoenix/controllers/registration_html.ex @@ -2,7 +2,9 @@ defmodule PowAssent.Phoenix.RegistrationHTML do @moduledoc false use Pow.Phoenix.Template - if Pow.dependency_vsn_match?(:phoenix, ">= 1.7.0") do + # Credo will complain about unless statement but we want this first + # credo:disable-for-next-line + unless Pow.dependency_vsn_match?(:phoenix, "< 1.7.0") do template :add_user_id, :html, """