Lines Matching refs:auth

33     global $auth;
47 $auth = $plugin_controller->load('auth', $plugin);
52 if(!isset($auth) || !$auth){
57 if ($auth->success == false) {
59 unset($auth);
89 if (true === $auth->success) {
90 $INPUT->set('u', $auth->cleanUser(stripctl($INPUT->str('u'))));
95 if (!is_null($auth) && $auth->canDo('external')) {
96 $ok = $auth->trustExternal($INPUT->str('u'), $INPUT->str('p'), $INPUT->bool('r'));
216 global $auth;
222 if(!$auth) return false;
226 if(!empty($pass) && $auth->checkPass($user, $pass)) {
251 $auth->useSessionCache($user) &&
414 global $auth;
435 if($auth) $auth->logOff();
459 global $auth;
464 if(!$auth) return false;
477 $groups = $auth->getUserData($user);
532 global $auth;
533 if(!$auth) return false;
536 if(!$auth->isCaseSensitive()) {
540 $user = $auth->cleanUser($user);
541 $groups = array_map(array($auth, 'cleanGroup'), $groups);
552 if(!$auth->isCaseSensitive()) $member = \dokuwiki\Utf8\PhpString::strtolower($member);
554 $member = $auth->cleanGroup(substr($member, 1));
557 $member = $auth->cleanUser($member);
625 global $auth;
629 if(!$auth) return AUTH_NONE;
639 if(!$auth->isCaseSensitive()) {
643 $user = auth_nameencode($auth->cleanUser($user));
644 $groups = array_map(array($auth, 'cleanGroup'), (array) $groups);
666 if(!$auth->isCaseSensitive() && $acl[1] !== '@ALL') {
696 if(!$auth->isCaseSensitive() && $acl[1] !== '@ALL') {
834 global $auth;
835 if(!$auth) return false;
837 $user = $auth->cleanUser($user);
838 $userinfo = $auth->getUserData($user, $requireGroups = false);
869 global $auth;
876 $login = trim($auth->cleanUser($INPUT->post->str('login')));
904 if(!$auth->triggerUserMod('create', array($login, $pass, $fullname, $email))) {
938 global $auth;
966 if((empty($changes['name']) && $auth->canDo('modName')) ||
967 (empty($changes['mail']) && $auth->canDo('modMail'))
972 if(!mail_isvalid($changes['mail']) && $auth->canDo('modMail')) {
980 if(!$auth->canDo('modName')) unset($changes['name']);
981 if(!$auth->canDo('modMail')) unset($changes['mail']);
982 if(!$auth->canDo('modPass')) unset($changes['pass']);
991 if(!$auth->checkPass($INPUT->server->str('REMOTE_USER'), $INPUT->post->str('oldpass'))) {
997 if(!$auth->triggerUserMod('modify', array($INPUT->server->str('REMOTE_USER'), &$changes))) {
1027 global $auth;
1035 if(!actionOK('profile_delete') || !$auth->canDo('delUser')) {
1046 if(!$auth->checkPass($INPUT->server->str('REMOTE_USER'), $INPUT->post->str('oldpass'))) {
1054 if($auth->triggerUserMod('delete', array($deleted))) {
1081 global $auth;
1110 $userinfo = $auth->getUserData($user, $requireGroups = false);
1127 if(!$auth->triggerUserMod('modify', array($user, array('pass' => $pass)))) {
1135 if(!$auth->triggerUserMod('modify', array($user, array('pass' => $pass)))) {
1159 $user = trim($auth->cleanUser($INPUT->post->str('login')));
1162 $userinfo = $auth->getUserData($user, $requireGroups = false);
1249 global $auth;
1252 if(!$auth) return false;
1253 $USERINFO = $auth->getUserData($user);