summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-05-04 19:20:11 +0100
committerChristopher Smith <chris@jalakai.co.uk>2014-05-04 19:20:11 +0100
commit2dc9e90007f12ac996b0e74479137a9dc6243c3c (patch)
treefd22408ecdbd51181c9ac1b95f2d56366391df24 /inc/auth.php
parent06e3e0c7b506a637df1ea27c6a8a439756e7139d (diff)
downloadrpg-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/auth.php')
-rw-r--r--inc/auth.php6
1 files changed, 3 insertions, 3 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;