From 7a1aec566316cd8bcd5e5a4472a62706b7521b35 Mon Sep 17 00:00:00 2001
From: Herman van Rink <rink@initfour.nl>
Date: Sun, 6 Mar 2022 21:23:14 +0100
Subject: [PATCH] Fix indent

---
 interface/web/login/otp.php | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/interface/web/login/otp.php b/interface/web/login/otp.php
index 3e4abf8503..d4b5dc92e2 100644
--- a/interface/web/login/otp.php
+++ b/interface/web/login/otp.php
@@ -93,9 +93,10 @@ if($_SESSION['otp']['type'] == 'email') {
 		
 		//* Check if we reached limits
 		if($_SESSION['otp']['sent'] > $max_code_resend
-		|| $_SESSION['otp']['session_attempts'] > $max_session_code_retry
-		|| $user['otp_attempts'] > $max_global_code_retry
-		|| time() > $_SESSION['otp']['starttime'] + $max_time) {
+			|| $_SESSION['otp']['session_attempts'] > $max_session_code_retry
+			|| $user['otp_attempts'] > $max_global_code_retry
+			|| time() > $_SESSION['otp']['starttime'] + $max_time
+			) {
 			unset($_SESSION['otp']);
 			unset($_SESSION['s_pending']);
 			$app->error('2FA failed','index.php');
@@ -107,7 +108,7 @@ if($_SESSION['otp']['type'] == 'email') {
 			unset($_SESSION['s_pending']);
 			unset($_SESSION['otp']);
 			header('Location: ../index.php');
-								die();
+			die();
 		} else {
 			//* 2fa wrong code
 			$_SESSION['otp']['session_attempts']++; // FIXME can't we skip this and rely on the DB only?
-- 
GitLab