From 8fd2f03ac0a6725c8eea9c5495c643ee64d7bb77 Mon Sep 17 00:00:00 2001
From: Andreas Gohr
Date: Sun, 29 Jan 2006 14:10:54 +0100
Subject: resendpasswd option added
darcs-hash:20060129131054-7ad00-aa633eafdd206cb38c710cc6a6de958c14eecb6d.gz
---
conf/dokuwiki.php | 1 +
inc/auth.php | 1 +
inc/html.php | 2 +-
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/conf/dokuwiki.php b/conf/dokuwiki.php
index 8655bd32d..9b027ea7f 100644
--- a/conf/dokuwiki.php
+++ b/conf/dokuwiki.php
@@ -54,6 +54,7 @@ $conf['mailguard'] = 'hex'; //obfuscate email addresses against sp
$conf['useacl'] = 0; //Use Access Control Lists to restrict access?
$conf['openregister']= 1; //Should users to be allowed to register?
$conf['autopasswd'] = 1; //autogenerate passwords and email them to user
+$conf['resendpasswd']= 0; //allow resend password function?
$conf['authtype'] = 'plain'; //which authentication backend should be used
$conf['passcrypt'] = 'smd5'; //Used crypt method (smd5,md5,sha1,ssha,crypt,mysql,my411)
$conf['defaultgroup']= 'user'; //Default groups new Users are added to
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 '
';
}
- if ($auth->canDo('modifyUser')) {
+ if ($auth->canDo('modifyUser') && $conf['resendpasswd']) {
print '';
print $lang['pwdforget'];
print ': '.$lang['btn_resendpwd'].'';
--
cgit v1.2.3