summaryrefslogtreecommitdiff
path: root/lib/plugins/authplain/auth.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-09-26 11:31:13 +0200
committerAndreas Gohr <andi@splitbrain.org>2014-09-26 11:31:13 +0200
commit7b950f2d59050052c1d9251b0bd9bd40c7441040 (patch)
tree98a14f7a197ed87059aab12b3c2a424000962a43 /lib/plugins/authplain/auth.php
parent9d209ab87700c872fa85dcbee8623ad386190847 (diff)
parent2dc9e90007f12ac996b0e74479137a9dc6243c3c (diff)
downloadrpg-7b950f2d59050052c1d9251b0bd9bd40c7441040.tar.gz
rpg-7b950f2d59050052c1d9251b0bd9bd40c7441040.tar.bz2
Merge remote-tracking branch 'origin/auth_getUserData_improvements'
* origin/auth_getUserData_improvements: KISS - remove class constants for REQUIRE_GROUPS & IGNORE_GROUPS and replace with boolean values use $requireGroups constants in auth classes; comments; code improvements fix comment errors, sp. & grammar code styling - add missing braces Allow user info to be retrieved without groups Restore correct public interface of getUserData() for authldap plugin Conflicts: inc/common.php
Diffstat (limited to 'lib/plugins/authplain/auth.php')
-rw-r--r--lib/plugins/authplain/auth.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/plugins/authplain/auth.php b/lib/plugins/authplain/auth.php
index e53f56667..b3ca988b9 100644
--- a/lib/plugins/authplain/auth.php
+++ b/lib/plugins/authplain/auth.php
@@ -76,9 +76,10 @@ class auth_plugin_authplain extends DokuWiki_Auth_Plugin {
*
* @author Andreas Gohr <andi@splitbrain.org>
* @param string $user
+ * @param bool $requireGroups (optional) ignored by this plugin, grps info always supplied
* @return array|bool
*/
- public function getUserData($user) {
+ public function getUserData($user, $requireGroups=true) {
if($this->users === null) $this->_loadUserData();
return isset($this->users[$user]) ? $this->users[$user] : false;
}