Skip to content

Commit 70519ba

Browse files
committed
codestyle
1 parent ea51b5e commit 70519ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/login/otp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function finish_2fa_success($msg = '') {
7777
if(isset($_POST['code']) && strlen($_POST['code']) == $otp_recovery_code_length) {
7878
//* TODO Recovery code handling
7979

80-
$user = $app->db->queryOneRecord('SELECT otp_attempts, otp_recovery FROM sys_user WHERE userid = ?',$_SESSION['s_pending']['user']['userid']);
80+
$user = $app->db->queryOneRecord('SELECT otp_attempts, otp_recovery FROM sys_user WHERE userid = ?', $_SESSION['s_pending']['user']['userid']);
8181

8282
//* We allow one more try to enter recovery code
8383
if($user['otp_attempts'] > $max_global_code_retry + 1) {
@@ -103,7 +103,7 @@ function finish_2fa_success($msg = '') {
103103

104104
if(isset($_POST['code']) && strlen($_POST['code']) == $code_length && isset($_SESSION['otp']['code_hash'])) {
105105

106-
$user = $app->db->queryOneRecord('SELECT otp_attempts FROM sys_user WHERE userid = ?',$_SESSION['s_pending']['user']['userid']);
106+
$user = $app->db->queryOneRecord('SELECT otp_attempts FROM sys_user WHERE userid = ?', $_SESSION['s_pending']['user']['userid']);
107107

108108
//* Check if we reached limits
109109
if($_SESSION['otp']['sent'] > $max_code_resend

0 commit comments

Comments
 (0)