fix local auth

This commit is contained in:
fbsanchez 2021-01-11 15:08:07 +01:00
parent 7bbecceacc
commit 749b729c0c
1 changed files with 3 additions and 1 deletions

View File

@ -95,7 +95,9 @@ function process_user_login($login, $pass, $api=false)
// 2. Try local.
if ($login_remote === false
&& ($config['fallback_local_auth'] || is_user_admin($login))
&& ($config['fallback_local_auth']
|| is_user_admin($login)
|| strtolower($config['auth']) == 'mysql')
) {
return process_user_login_local($login, $pass, $api);
} else {