From 79eddbac3baf6a40010ad6b562795f1d4950100e Mon Sep 17 00:00:00 2001 From: Dan Schultzer <1254724+danschultzer@users.noreply.github.com> Date: Fri, 28 Apr 2023 09:19:50 -0700 Subject: [PATCH] Flip Phoenix 1.7 flags --- lib/pow_assent/phoenix/controllers/registration_html.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, """