Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Moc committed Jan 27, 2021
1 parent a9be0f1 commit 081d6a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions twofactorauth_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public function init($user_id)

// 2FA is enabled for this user. Continue verification process. Service page to enter TOTP digits, generated by user's authenthicator app.
if($this->tfa_debug)
{
e107::getAdminLog()->addDebug(__LINE__." ".__METHOD__.": 2FA is activated for User ID ".$user_id);
e107::getAdminLog()->addDebug(__LINE__." ".__METHOD__.": User will need to enter digits. Redirect to tfa/login");
e107::getAdminLog()->toFile('twofactorauth', 'TwoFactorAuth Debug Information', true);
}
{
e107::getAdminLog()->addDebug(__LINE__." ".__METHOD__.": 2FA is activated for User ID ".$user_id);
e107::getAdminLog()->addDebug(__LINE__." ".__METHOD__.": User will need to enter digits. Redirect to tfa/login");
e107::getAdminLog()->toFile('twofactorauth', 'TwoFactorAuth Debug Information', true);
}

// Store some information in a session, so we can retrieve it again later
e107::getSession('2fa')->set('user_id', $user_id); // Store User ID
Expand Down

0 comments on commit 081d6a7

Please sign in to comment.