diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-11-30 13:09:15 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-11-30 13:09:15 +0100 |
commit | 790b77202079261b11d425e0c814608d626eea70 (patch) | |
tree | a0ac11ba59a10a9e818508f46e6c50a2294fcb77 /inc/auth.php | |
parent | 10b5c32d6486ab0884deda109b1e5947f7ec7662 (diff) | |
download | rpg-790b77202079261b11d425e0c814608d626eea70.tar.gz rpg-790b77202079261b11d425e0c814608d626eea70.tar.bz2 |
moved registration notification to subscription class
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/inc/auth.php b/inc/auth.php index 9c458338d..29a46b37e 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); |