From 87ddda95605ce63faf0e4a8ffff254354ea3dc66 Mon Sep 17 00:00:00 2001 From: andi Date: Sun, 16 Jan 2005 11:58:54 +0100 Subject: fixed mailsend in registerprocess (task #53) darcs-hash:20050116105854-9977f-a359bd4bdde19e055ab310a4d23a5ee402b2d9d1.gz --- inc/auth.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'inc') 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); } /** -- cgit v1.2.3