From 25be5747a6e462a3d09fc6607b3639b79e4d9374 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 23 Dec 2025 20:11:26 +0000
Subject: [PATCH] =EmailManager.php refactor, Turnstile properly integrated with form submissions

---
 inc/integrations/Square.php |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/inc/integrations/Square.php b/inc/integrations/Square.php
index 60e4d80..aab2903 100644
--- a/inc/integrations/Square.php
+++ b/inc/integrations/Square.php
@@ -1849,17 +1849,19 @@
 
 		$message = sprintf(
 			"Welcome to %s!\n\n" .
-			"Your account has been created. Please click the link below to set your password:\n\n" .
+			"Your account has been created. Please click the button below to set your password:\n\n" .
 			"%s\n\n" .
-			"Once you've set your password, you can log in to:\n" .
+			"Or, copy and paste the link below:\n\n".
+			"%s\n\n" .
+			"Once you've set your password, you can:\n" .
 			"- View your order history\n" .
 			"- Save your favorite items\n" .
 			"- Speed up checkout with saved payment methods\n\n" .
 			"If you didn't create this account, please ignore this email.\n\n" .
-			"Thanks,\n%s",
+			"Thanks,\n",
 			$site_name,
-			$reset_url,
-			$site_name
+			JVB()->email()->button('Reset Password', $reset_url),
+			JVB()->email()->link($reset_url),
 		);
 
 		JVB()->email()->sendEmail(

--
Gitblit v1.10.0