From e1fcbe1e60657635fd4474b2fca8299b922619a4 Mon Sep 17 00:00:00 2001 From: andi Date: Tue, 10 May 2005 18:30:55 +0200 Subject: small fixes to register from admin page It's AUTH_ADMIN not AUTH_AUTH ;-), Small formatting changes, removed superfluous perm check in register() darcs-hash:20050510163055-9977f-ca82569166a73bb657e82d3ffa525c1d1978f73e.gz --- inc/auth.php | 5 ----- 1 file changed, 5 deletions(-) (limited to 'inc/auth.php') diff --git a/inc/auth.php b/inc/auth.php index 0433a327c..ca6fb20de 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -365,14 +365,9 @@ function auth_sendPassword($user,$password){ */ function register(){ global $lang; - global $conf; if(!$_POST['save']) return false; - //no open register? -> only admin allowed! - if(!$conf['openregister'] && - auth_quickaclcheck('') != AUTH_ADMIN ) return false; - //clean username $_POST['login'] = preg_replace('/.*:/','',$_POST['login']); $_POST['login'] = cleanID($_POST['login']); -- cgit v1.2.3