diff options
author | andi <andi@splitbrain.org> | 2005-01-16 11:58:54 +0100 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-01-16 11:58:54 +0100 |
commit | 87ddda95605ce63faf0e4a8ffff254354ea3dc66 (patch) | |
tree | 58c5c8d93d3db52f31e3351ff6bc37226149e721 | |
parent | a2b581d3bb71496c506304d4d90df9ade7a35f23 (diff) | |
download | rpg-87ddda95605ce63faf0e4a8ffff254354ea3dc66.tar.gz rpg-87ddda95605ce63faf0e4a8ffff254354ea3dc66.tar.bz2 |
fixed mailsend in registerprocess (task #53)
darcs-hash:20050116105854-9977f-a359bd4bdde19e055ab310a4d23a5ee402b2d9d1.gz
-rw-r--r-- | inc/auth.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/auth.php b/inc/auth.php index 3db9cc21a..62e4fec32 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -317,14 +317,14 @@ function auth_pwgen(){ function auth_sendPassword($user,$password){ global $conf; global $lang; - $users = auth_loadUserData(); $hdrs = ''; + $userinfo = auth_getUserData($user); - if(!$users[$user]['mail']) return false; + if(!$userinfo['mail']) return false; $text = rawLocale('password'); $text = str_replace('@DOKUWIKIURL@',getBaseURL(true),$text); - $text = str_replace('@FULLNAME@',$users[$user]['name'],$text); + $text = str_replace('@FULLNAME@',$userinfo['name'],$text); $text = str_replace('@LOGIN@',$user,$text); $text = str_replace('@PASSWORD@',$password,$text); $text = str_replace('@TITLE@',$conf['title'],$text); @@ -332,7 +332,7 @@ function auth_sendPassword($user,$password){ if (!empty($conf['mailfrom'])) { $hdrs = 'From: '.$conf['mailfrom']."\n"; } - return @mail($users[$user]['mail'],$lang['regpwmail'],$text,$hdrs); + return @mail($userinfo['mail'],$lang['regpwmail'],$text,$hdrs); } /** |