/** * Modify options in the login template. * * @param UserLoginTemplate $template * @access public */ function modifyUITemplate(&$template) { global $wgLDAPDomainNames; $template->set('usedomain', true); $tempDomArr = $wgLDAPDomainNames; if (!$this->strict()) { array_push($tempDomArr, 'local'); } $template->set('domainnames', $tempDomArr); }
/** * Modify options in the login template. * * NOTE: Turned off some Template stuff here. Anyone who knows where * to find all the template options please let me know. I was only able * to find a few. * * @param UserLoginTemplate $template * @access public */ public function modifyUITemplate(&$template, &$type) { $template->set('usedomain', false); // We do not want a domain name. $template->set('create', false); // Remove option to create new accounts from the wiki. $template->set('useemail', false); // Disable the mail new password box. }
/** * Modify options in the login template. * * @param UserLoginTemplate $template * @param $type */ public function modifyUITemplate(&$template, &$type) { $this->printDebug("Entering modifyUITemplate", NONSENSITIVE); $template->set('create', $this->getConf('AddLDAPUsers')); $template->set('usedomain', true); $template->set('useemail', $this->getConf('MailPassword')); $template->set('canreset', $this->getConf('MailPassword')); $template->set('domainnames', $this->domainList()); wfRunHooks('LDAPModifyUITemplate', array(&$template)); }
/** * Modify options in the login template. * * @param UserLoginTemplate $template * @param string $type 'signup' or 'login'. Added in 1.16. */ public function modifyUITemplate(&$template, &$type) { # Override this! $template->set('usedomain', false); }
/** * Modify options in the login template. * * @param UserLoginTemplate $template * @access public */ function modifyUITemplate(&$template) { global $LDAPDomainNames, $LDAPUseLocal; global $LDAPAddLDAPUsers; global $LDAPUseSmartcardAuth, $LDAPSmartcardDomain; $this->printDebug("Entering modifyUITemplate", 1); if (!isset($LDAPAddLDAPUsers[$_SESSION['LDAPDomain']]) || !$LDAPAddLDAPUsers[$_SESSION['LDAPDomain']]) { $template->set('create', false); } $template->set('usedomain', true); $template->set('useemail', false); $tempDomArr = $LDAPDomainNames; if ($LDAPUseLocal) { $this->printDebug("Allowing the local domain, adding it to the list.", 1); array_push($tempDomArr, 'local'); } if ($LDAPUseSmartcardAuth) { $this->printDebug("Allowing smartcard login, removing the domain from the list.", 1); //There is no reason for people to log in directly to the wiki if the are using a //smartcard. If they try to, they are probably up to something fishy. unset($tempDomArr[array_search($LDAPSmartcardDomain, $tempDomArr)]); } $template->set('domainnames', $tempDomArr); }
/** * Modify options in the login template. * * @param UserLoginTemplate $template * @access public */ function modifyUITemplate(&$template) { $template->set('create', false); $template->set('usedomain', false); $template->set('useemail', false); //disable the mail new password box $template->set("useemail", false); //disable 'remember me' box $template->set("remember", false); //$template->set("create", false); $template->set("domain", false); }
/** * Modify options in the login template. * * @param UserLoginTemplate $template * @access public */ function modifyUITemplate(&$template, &$type) { $template->set('usedomain', false); $template->set('useemail', false); $template->set('create', false); }
/** * Modify options in the login template. * * @param UserLoginTemplate $template * @access public */ function modifyUITemplate(&$template) { global $wgLDAPDomainNames, $wgLDAPUseLocal; global $wgLDAPAddLDAPUsers; global $wgLDAPAutoAuthDomain; $this->printDebug("Entering modifyUITemplate", NONSENSITIVE); if (!isset($wgLDAPAddLDAPUsers[$_SESSION['wsDomain']]) || !$wgLDAPAddLDAPUsers[$_SESSION['wsDomain']]) { $template->set('create', false); } $template->set('usedomain', true); $template->set('useemail', false); $tempDomArr = $wgLDAPDomainNames; if ($wgLDAPUseLocal) { $this->printDebug("Allowing the local domain, adding it to the list.", NONSENSITIVE); array_push($tempDomArr, 'local'); } if (isset($wgLDAPAutoAuthDomain)) { $this->printDebug("Allowing auto-authentication login, removing the domain from the list.", NONSENSITIVE); //There is no reason for people to log in directly to the wiki if the are using an //auto-authentication domain. If they try to, they are probably up to something fishy. unset($tempDomArr[array_search($wgLDAPAutoAuthDomain, $tempDomArr)]); } $template->set('domainnames', $tempDomArr); }
/** * Modify options in the login template. * * @param UserLoginTemplate $template * @access public */ function modifyUITemplate(&$template) { global $wgLDAPDomainNames, $wgLDAPUseLocal; global $wgLDAPAddLDAPUsers; if (!$wgLDAPAddLDAPUsers) { $template->set('create', false); } $template->set('usedomain', true); $template->set('useemail', false); $tempDomArr = $wgLDAPDomainNames; if ($wgLDAPUseLocal) { array_push($tempDomArr, 'local'); } $template->set('domainnames', $tempDomArr); }