summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-11-01 13:03:06 +0300
committerAndrew Dolgov <[email protected]>2019-11-01 13:03:06 +0300
commit68b0380118cc0ff4f8dc99125dce7d97b61e02f3 (patch)
treebaa17c8bceedb81e96269130be59b4543799bfe1 /include
parent88cd9e586e2e0d0ccea745018ba2f9a91e04ec93 (diff)
add placeholder authentication via app passwords if service is passed
forbid logins via regular passwords for services remove AUTH_DISABLE_OTP
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index be20f8ddb..d58f03ab1 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -509,7 +509,7 @@
return "";
}
- function authenticate_user($login, $password, $check_only = false) {
+ function authenticate_user($login, $password, $check_only = false, $service = false) {
if (!SINGLE_USER_MODE) {
$user_id = false;
@@ -517,7 +517,7 @@
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_AUTH_USER) as $plugin) {
- $user_id = (int) $plugin->authenticate($login, $password);
+ $user_id = (int) $plugin->authenticate($login, $password, $service);
if ($user_id) {
$auth_module = strtolower(get_class($plugin));