From c04058f6f5206ba436919d5ef28252a68fbb7c91 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 23 Sep 2020 14:36:22 +0300 Subject: [PATCH] Corrected the reset password mail notification --- application/views/emails/new_password.php | 11 ++++++----- engine/Notifications/Email.php | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/application/views/emails/new_password.php b/application/views/emails/new_password.php index 8ae7ee69..0532bbb2 100644 --- a/application/views/emails/new_password.php +++ b/application/views/emails/new_password.php @@ -1,6 +1,6 @@ - New Account Password + New Password | Easy!Appointments
@@ -8,12 +8,13 @@ height: 45px; padding: 10px 15px;"> + +
-

$email_title

-

$email_message

+

+

diff --git a/engine/Notifications/Email.php b/engine/Notifications/Email.php index 4e0bddc4..0f461d12 100755 --- a/engine/Notifications/Email.php +++ b/engine/Notifications/Email.php @@ -255,11 +255,11 @@ class Email { public function sendPassword(NonEmptyText $password, EmailAddress $recipientEmail, array $company) { $email_title = $this->framework->lang->line('new_account_password'); - $email_message = $this->framework->lang->line('new_password_is'); + $password = '' . $password->get() . ''; + $email_message = str_replace('$password', $password, $this->framework->lang->line('new_password_is')); $company_name = $company['company_name']; $company_email = $company['company_email']; $company_link = $company['company_link']; - $password = '' . $password->get() . ''; ob_start(); require __DIR__ . '/../../application/views/emails/new_password.php';