diff --git a/html/login/2fa.php b/html/login/2fa.php new file mode 100644 index 0000000..081a6b8 --- /dev/null +++ b/html/login/2fa.php @@ -0,0 +1,68 @@ +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 = "