Skip to content

Commit

Permalink
fix: corrected check on username and password
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed May 6, 2024
1 parent 5a2b537 commit 52585c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpmyfaq/index.php
Original file line number Diff line number Diff line change
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 52585c5

Please sign in to comment.