diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-01-29 14:10:54 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-01-29 14:10:54 +0100 |
commit | 8fd2f03ac0a6725c8eea9c5495c643ee64d7bb77 (patch) | |
tree | 2e39023001dbfa15e1ff7dbe81d7a48c9ba9ea72 /inc | |
parent | 71592caec748177f115e3d73c2d375c8f90915b5 (diff) | |
download | rpg-8fd2f03ac0a6725c8eea9c5495c643ee64d7bb77.tar.gz rpg-8fd2f03ac0a6725c8eea9c5495c643ee64d7bb77.tar.bz2 |
resendpasswd option added
darcs-hash:20060129131054-7ad00-aa633eafdd206cb38c710cc6a6de958c14eecb6d.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/auth.php | 1 | ||||
-rw-r--r-- | inc/html.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index ddc4007cf..7ae0da1a4 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -541,6 +541,7 @@ function act_resendpwd(){ global $auth; if(!$_POST['save']) return false; + if(!$conf['resendpasswd']) return false; // should not be able to get here without modifyUser being possible... if(!$auth->canDo('modifyUser')) { diff --git a/inc/html.php b/inc/html.php index 9b12ddbd1..e53dcbaf6 100644 --- a/inc/html.php +++ b/inc/html.php @@ -80,7 +80,7 @@ function html_login(){ print '</p>'; } - if ($auth->canDo('modifyUser')) { + if ($auth->canDo('modifyUser') && $conf['resendpasswd']) { print '<p>'; print $lang['pwdforget']; print ': <a href="'.wl($ID,'do=resendpwd').'" class="wikilink1">'.$lang['btn_resendpwd'].'</a>'; |