From a8f3669b4ea82f48edbca69742364adf2794e07f Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Tue, 28 Feb 2017 17:37:57 -0500 Subject: Modularized email and hashing --- dash/profile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dash/profile.php') diff --git a/dash/profile.php b/dash/profile.php index 00764f7..de9d562 100644 --- a/dash/profile.php +++ b/dash/profile.php @@ -69,9 +69,9 @@ $phonelink = '+'.preg_replace('/[^0-9]/', '', $user['phone']); $usepropic = ''; if ($_POST['email'] != $b_user['email']) { $deactivate = ', active = 0'; - mail($_POST['email'], 'Verify Your Bulletin Email', eml_tpl(array( + bulletin_mail($_POST['email'], 'Verify Your Bulletin Email', tpl(array( 'activation_vars' => 'uid='.$b_user['id'].'&key='.$b_user['session'], - )), "From: ".$b_config['mail_from']."\r\nContent-type: text/html") or dash_fatal('We couldn\'t send mail to your new email address, so your profile has not been updated.'); + ), 'changed.tpl')) or dash_fatal('We couldn\'t send mail to your new email address, so your profile has not been updated.'); } if (!empty($_FILES['picture']['tmp_name'])) { $usepropic = ', picture = id'; -- cgit v1.2.3