static function getSearchDirectories() { $backends = array(); foreach (StaffAuthenticationBackend::allRegistered() as $bk) { if ($bk instanceof AuthDirectorySearch) { $backends[$bk::$id] = $bk; } } foreach (UserAuthenticationBackend::allRegistered() as $bk) { if ($bk instanceof AuthDirectorySearch) { $backends[$bk::$id] = $bk; } } return array_unique($backends); }
?> " placeholder="username" autocorrect="off" autocapitalize="off"> <input type="password" name="passwd" id="pass" placeholder="password" autocorrect="off" autocapitalize="off"> <?php if ($show_reset && $cfg->allowPasswordReset()) { ?> <h3 style="display:inline"><a href="pwreset.php">Forgot my password</a></h3> <?php } ?> <input class="submit" type="submit" name="submit" value="Log In"> </fieldset> </form> <?php $ext_bks = array(); foreach (StaffAuthenticationBackend::allRegistered() as $bk) { if ($bk instanceof ExternalAuthentication) { $ext_bks[] = $bk; } } if (count($ext_bks)) { ?> <div class="or"> <hr/> </div><?php foreach ($ext_bks as $bk) { ?> <div class="external-auth"><?php $bk->renderExternalLink(); ?> </div><?php