From 28746442dc97f0a32b099347d4fea1f1f76566e3 Mon Sep 17 00:00:00 2001 From: Thomas Miller <112876429+thomasmillercf@users.noreply.github.com> Date: Mon, 23 Feb 2026 15:00:27 +0000 Subject: [PATCH] Fix template bug --- theme/pages/identity/login/authn_mode_otp_verify.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/pages/identity/login/authn_mode_otp_verify.tmpl b/theme/pages/identity/login/authn_mode_otp_verify.tmpl index 3f3c702..cd098b5 100644 --- a/theme/pages/identity/login/authn_mode_otp_verify.tmpl +++ b/theme/pages/identity/login/authn_mode_otp_verify.tmpl @@ -65,7 +65,7 @@ (and (eq .Data.OtpMode "email") (or (eq .Data.UserID "") (gt (len .Data.UserEmails) 1))) (and (eq .Data.OtpMode "sms") (or (eq .Data.UserID "") (gt (len .Data.UserMobiles) 1))) -}} - {{- $hasErrors := eq (len .Data.FormError.Errors) 0 -}} + {{- $hasErrors := gt (len .Data.FormError.Errors) 0 -}} {{ if or $hasErrors $showAlternativeButton }}