diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-05-04 19:20:11 +0100 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-05-04 19:20:11 +0100 |
commit | 2dc9e90007f12ac996b0e74479137a9dc6243c3c (patch) | |
tree | fd22408ecdbd51181c9ac1b95f2d56366391df24 /inc | |
parent | 06e3e0c7b506a637df1ea27c6a8a439756e7139d (diff) | |
download | rpg-2dc9e90007f12ac996b0e74479137a9dc6243c3c.tar.gz rpg-2dc9e90007f12ac996b0e74479137a9dc6243c3c.tar.bz2 |
KISS - remove class constants for REQUIRE_GROUPS & IGNORE_GROUPS and replace with boolean values
Diffstat (limited to 'inc')
-rw-r--r-- | inc/auth.php | 6 | ||||
-rw-r--r-- | inc/common.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/inc/auth.php b/inc/auth.php index cbdd7163b..5e0d13417 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -922,7 +922,7 @@ function auth_sendPassword($user, $password) { if(!$auth) return false; $user = $auth->cleanUser($user); - $userinfo = $auth->getUserData($user, DokuWiki_Auth_Plugin::IGNORE_GROUPS); + $userinfo = $auth->getUserData($user, $requireGroups = false); if(!$userinfo['mail']) return false; @@ -1184,7 +1184,7 @@ function act_resendpwd() { } $user = io_readfile($tfile); - $userinfo = $auth->getUserData($user, DokuWiki_Auth_Plugin::IGNORE_GROUPS); + $userinfo = $auth->getUserData($user, $requireGroups = false); if(!$userinfo['mail']) { msg($lang['resendpwdnouser'], -1); return false; @@ -1236,7 +1236,7 @@ function act_resendpwd() { $user = trim($auth->cleanUser($INPUT->post->str('login'))); } - $userinfo = $auth->getUserData($user, DokuWiki_Auth_Plugin::IGNORE_GROUPS); + $userinfo = $auth->getUserData($user, $requireGroups = false); if(!$userinfo['mail']) { msg($lang['resendpwdnouser'], -1); return false; diff --git a/inc/common.php b/inc/common.php index 9ed9e84d4..9b3c59e6e 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1468,7 +1468,7 @@ function editorinfo($username) { case 'username': case 'email': case 'email_link': - if($auth) $info = $auth->getUserData($username, DokuWiki_Auth_Plugin::IGNORE_GROUPS); + if($auth) $info = $auth->getUserData($username, $requireGroups = false); break; default: return hsc($username); |