Skip to content

Commit

Permalink
fix: corrected check on 2FA secret
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Jan 6, 2024
1 parent 9ac4676 commit 059faeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpmyfaq/ucp.php
Expand Up @@ -54,7 +54,7 @@

$tfa = new TwoFactor($faqConfig);
$secret = $tfa->getSecret(CurrentUser::getFromSession($faqConfig));
if (is_null($secret)) {
if ('' === $secret) {
try {
$secret = $tfa->generateSecret();
} catch (TwoFactorAuthException $e) {
Expand Down

0 comments on commit 059faeb

Please sign in to comment.