summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/inc/auth.php b/inc/auth.php
index 6e97b12c0..40145ee78 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -501,16 +501,23 @@ function register(){
return false;
}
+ // create substitutions for use in notification email
+ $substitutions = array(
+ 'NEWUSER' => $_POST['login'],
+ 'NEWNAME' => $_POST['fullname'],
+ 'NEWEMAIL' => $_POST['email'],
+ );
+
if (!$conf['autopasswd']) {
msg($lang['regsuccess2'],1);
- notify('', 'register', '', $_POST['login'], false);
+ notify('', 'register', '', $_POST['login'], false, $substitutions);
return true;
}
// autogenerated password? then send him the password
if (auth_sendPassword($_POST['login'],$pass)){
msg($lang['regsuccess'],1);
- notify('', 'register', '', $_POST['login'], false);
+ notify('', 'register', '', $_POST['login'], false, $substitutions);
return true;
}else{
msg($lang['regmailfail'],-1);