summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorKlap-in <klapinklapin@gmail.com>2013-01-26 21:03:14 +0100
committerKlap-in <klapinklapin@gmail.com>2013-01-26 21:03:14 +0100
commit3a2c510523e4ea91ab270c3075349f319e4bc95e (patch)
tree7fe2d24e5f4450cf78e9291e8a2899665274c636 /inc/auth.php
parent5fd9b829e7d9947de0eeead685e0a0cf707eff88 (diff)
parent1a40fc9935bd06a440a844e081e4bfce5fce2932 (diff)
downloadrpg-3a2c510523e4ea91ab270c3075349f319e4bc95e.tar.gz
rpg-3a2c510523e4ea91ab270c3075349f319e4bc95e.tar.bz2
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/inc/auth.php b/inc/auth.php
index c68a699fe..c4f1dcf2b 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -780,23 +780,19 @@ function register() {
return false;
}
- // create substitutions for use in notification email
- $substitutions = array(
- 'NEWUSER' => $login,
- 'NEWNAME' => $fullname,
- 'NEWEMAIL' => $email,
- );
+ // send notification about the new user
+ $subscription = new Subscription();
+ $subscription->send_register($login, $fullname, $email);
+ // are we done?
if(!$conf['autopasswd']) {
msg($lang['regsuccess2'], 1);
- notify('', 'register', '', $login, false, $substitutions);
return true;
}
- // autogenerated password? then send him the password
+ // autogenerated password? then send password to user
if(auth_sendPassword($login, $pass)) {
msg($lang['regsuccess'], 1);
- notify('', 'register', '', $login, false, $substitutions);
return true;
} else {
msg($lang['regmailfail'], -1);