Update 2fa.php

This commit is contained in:
jakani24
2024-06-06 16:29:27 +02:00
parent 2fcee9b618
commit c1cbddf955

View File

@@ -60,9 +60,9 @@ include "../../../api/php/notifications/sendmessage.php"; //to send user notific
$_SESSION["login"]=true;
if($_SESSION["send_login_message"]=="1"){
$ip = $_SERVER['REMOTE_ADDR'];
$username=$row["username"];
$username=$_SESSION["username"];
send_to_user("[LOGIN WARNING]\nHello $username\nSomebody has logged into Cyberhex with your account.\nIf this was you, you can ignore this message. Else please take steps to secure your account!\nIP: $ip\n",$username);
//echo '<script>window.location.href = "/system/secure_zone/php/index.php";</script>';
echo '<script>window.location.href = "/system/secure_zone/php/index.php";</script>';
}
}else {
echo '<div class="alert alert-danger" role="alert">