diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-11-27 10:50:03 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-11-27 10:50:03 +0100 |
commit | 560f6ea3cdac2767863c3be3a9e7933b6e37e88f (patch) | |
tree | 6f51d4b3402458e4de1a596b93ec752c8ac747b2 /inc/auth.php | |
parent | e0dd04a6493f1b7f7133f75c08f9ea55ee8bd50a (diff) | |
parent | c66c7229a0dfc4f9f06dadda98408679fa7a18d6 (diff) | |
download | rpg-560f6ea3cdac2767863c3be3a9e7933b6e37e88f.tar.gz rpg-560f6ea3cdac2767863c3be3a9e7933b6e37e88f.tar.bz2 |
Merge branch 'master' into bcrypt
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/inc/auth.php b/inc/auth.php index eff984b36..e0f58e5f2 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -673,8 +673,14 @@ function auth_sendPassword($user,$password){ $text = str_replace('@PASSWORD@',$password,$text); $text = str_replace('@TITLE@',$conf['title'],$text); + if(empty($conf['mailprefix'])) { + $subject = $lang['regpwmail']; + } else { + $subject = '['.$conf['mailprefix'].'] '.$lang['regpwmail']; + } + return mail_send($userinfo['name'].' <'.$userinfo['mail'].'>', - $lang['regpwmail'], + $subject, $text, $conf['mailfrom']); } @@ -912,8 +918,14 @@ function act_resendpwd(){ $text = str_replace('@TITLE@',$conf['title'],$text); $text = str_replace('@CONFIRM@',$url,$text); + if(empty($conf['mailprefix'])) { + $subject = $lang['regpwmail']; + } else { + $subject = '['.$conf['mailprefix'].'] '.$lang['regpwmail']; + } + if(mail_send($userinfo['name'].' <'.$userinfo['mail'].'>', - $lang['regpwmail'], + $subject, $text, $conf['mailfrom'])){ msg($lang['resendpwdconfirm'],1); |