diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-03-14 11:32:46 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-03-14 11:43:25 +0300 |
| commit | d373c1f978b4e4aae0b17ae696e73d46ffd40aee (patch) | |
| tree | 6299d4f3cac0238fb158d1f839d9e4bfc90f18c3 /plugins/auth_internal/init.php | |
| parent | 1fc4eed6cd9d887b52ea09bab6bd1ff75c79c25c (diff) | |
add Config::DISABLE_LOGIN_FORM to allow limiting logins to SSO providers
Diffstat (limited to 'plugins/auth_internal/init.php')
| -rw-r--r-- | plugins/auth_internal/init.php | 3 |
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 |