Skip to content

Commit acea2cd

Browse files
committed
syntax fix
1 parent b9a4f8c commit acea2cd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

interface/web/login/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function process_login_request(app $app, &$error, $conf, $module)
175175
if ($app->db->errorMessage != '') $error .= '<br />'.$app->db->errorMessage != '';
176176

177177
$app->plugin->raiseEvent('login_failed', $username);
178-
$app->auth_log('Failed login for user \''. $username .'\ from '. $_SERVER['REMOTE_ADDR'] .' at '. date('Y-m-d H:i:s');
178+
$app->auth_log('Failed login for user \''. $username .'\ from '. $_SERVER['REMOTE_ADDR'] .' at '. date('Y-m-d H:i:s'));
179179
}
180180
}
181181

interface/web/login/otp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function finish_2fa_success($msg = '') {
9494

9595
//* Begin 2fa via Email
9696
if($_SESSION['otp']['type'] == 'email') {
97-
97+
9898
//* Email 2fa handler settings
9999
$max_code_resend = 3;
100100
$max_time = 600; // time in seconds until the code gets invalidated
@@ -103,7 +103,7 @@ function finish_2fa_success($msg = '') {
103103
if(isset($_POST['code']) && strlen($_POST['code']) == $code_length && isset($_SESSION['otp']['code'])) {
104104

105105
if(strlen($_SESSION['otp']['code']) != $code_length) die(); // wrong code lenght, this should never happen
106-
106+
107107
$user = $app->db->queryOneRecord('SELECT otp_attempts FROM sys_user WHERE userid = ?',$_SESSION['s_pending']['user']['userid']);
108108

109109
//* Check if we reached limits

0 commit comments

Comments
 (0)