diff options
| author | Carson Fleming <cflems@cflems.net> | 2017-02-28 17:37:57 -0500 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2017-02-28 17:37:57 -0500 |
| commit | a8f3669b4ea82f48edbca69742364adf2794e07f (patch) | |
| tree | b2668a0a31623a578a16622a5da6b0c924b3c071 /dash/profile.php | |
| parent | 3bfe03a6f6136947eb8b9c714306d080ce889af7 (diff) | |
| download | bulletin-a8f3669b4ea82f48edbca69742364adf2794e07f.tar.gz | |
Modularized email and hashing
Diffstat (limited to 'dash/profile.php')
| -rw-r--r-- | dash/profile.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'; |
