summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-03-14 11:32:46 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-03-14 11:43:25 +0300
commitd373c1f978b4e4aae0b17ae696e73d46ffd40aee (patch)
tree6299d4f3cac0238fb158d1f839d9e4bfc90f18c3 /plugins
parent1fc4eed6cd9d887b52ea09bab6bd1ff75c79c25c (diff)
add Config::DISABLE_LOGIN_FORM to allow limiting logins to SSO providers
Diffstat (limited to 'plugins')
-rw-r--r--plugins/auth_internal/init.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/auth_internal/init.php b/plugins/auth_internal/init.php
index 4f2988262..9ff3ea24f 100644
--- a/plugins/auth_internal/init.php
+++ b/plugins/auth_internal/init.php
@@ -15,6 +15,9 @@ class Auth_Internal extends Auth_Base implements IAuthModule2 {
/** @param string $service */
function authenticate($login, $password, $service = '') {
+ if (Config::get(Config::DISABLE_LOGIN_FORM))
+ return false;
+
$otp = (int) ($_REQUEST["otp"] ?? 0);
// don't bother with null/null logins for auth_external etc