diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-03-14 08:44:17 +0000 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-03-14 08:44:17 +0000 |
| commit | 405cae963b81347baa5325181be9ffb6c88ae4b0 (patch) | |
| tree | 6299d4f3cac0238fb158d1f839d9e4bfc90f18c3 /plugins/auth_internal/init.php | |
| parent | 1fc4eed6cd9d887b52ea09bab6bd1ff75c79c25c (diff) | |
| parent | d373c1f978b4e4aae0b17ae696e73d46ffd40aee (diff) | |
Merge branch 'protected/DISABLE_LOGIN_FORM' into 'master'
add Config::DISABLE_LOGIN_FORM to allow limiting logins to SSO providers
See merge request tt-rss/tt-rss!106
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 |