From c65490c1fde0103018c756430a1fa0ea82b4658f Mon Sep 17 00:00:00 2001
From: Adrian Gruntkowski
Date: Thu, 23 Nov 2023 10:18:10 +0100
Subject: [PATCH] Do not render PA contact on self-hosted instances
---
lib/plausible_web/templates/auth/verify_2fa.html.heex | 8 ++++++--
.../templates/auth/verify_2fa_recovery_code.html.heex | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/lib/plausible_web/templates/auth/verify_2fa.html.heex b/lib/plausible_web/templates/auth/verify_2fa.html.heex
index 5c205183f..31b103637 100644
--- a/lib/plausible_web/templates/auth/verify_2fa.html.heex
+++ b/lib/plausible_web/templates/auth/verify_2fa.html.heex
@@ -17,8 +17,12 @@
>
Use recovery code
-
Lost your recovery codes?
- Contact us
+ <%= if not @is_selfhost do %>
+
Lost your recovery codes?
+
+ Contact us
+
+ <% end %>
diff --git a/lib/plausible_web/templates/auth/verify_2fa_recovery_code.html.heex b/lib/plausible_web/templates/auth/verify_2fa_recovery_code.html.heex
index 4bc84b7d5..f8863fd9f 100644
--- a/lib/plausible_web/templates/auth/verify_2fa_recovery_code.html.heex
+++ b/lib/plausible_web/templates/auth/verify_2fa_recovery_code.html.heex
@@ -32,8 +32,12 @@
Enter verification code
-
Lost your recovery codes?
- Contact us
+ <%= if not @is_selfhost do %>
+
Lost your recovery codes?
+
+ Contact us
+
+ <% end %>