diff --git a/html/login/2fa.php b/html/login/2fa.php index 081a6b8..03be841 100644 --- a/html/login/2fa.php +++ b/html/login/2fa.php @@ -8,37 +8,6 @@ if (isLoggedIn()) $alert = ''; if(isset($_POST['Submit'])) { - $username = cleanInput($_POST['username']); - $email = cleanInput($_POST['email']); - $userdetails = $pdo->prepare("SELECT * FROM users WHERE email = :e AND username = :u"); - $userdetails->bindParam(":e", $email, PDO::PARAM_STR); - $userdetails->bindParam(":u", $username, PDO::PARAM_STR); - $userdetails->execute(); - - if ($userdetails->rowCount() > 0) - { - $userdetails2 = $userdetails->fetch(PDO::FETCH_OBJ); - $userid = (int)$userdetails2->id; - $resetstatus = sendPasswordReset("info@alphaland.cc", $email, $userid); - - if ($resetstatus == 1) - { - $alert = "