Skip to content

Commit

Permalink
fix: corrected check on username and password (#2943)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed May 6, 2024
1 parent 5a2b537 commit 637c205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpmyfaq/index.php
Expand Up @@ -169,7 +169,7 @@
}

// Login via local DB or LDAP or SSO
if ($faqusername !== '' && ($faqpassword !== '' || $faqConfig->get('security.ssoSupport'))) {
if (!is_null($faqusername) && (!is_null($faqpassword) || $faqConfig->get('security.ssoSupport'))) {
$userAuth = new UserAuthentication($faqConfig, $user);
$userAuth->setRememberMe($rememberMe ?? false);
try {
Expand Down

0 comments on commit 637c205

Please sign in to comment.