Update login_backend.php

This commit is contained in:
jakani24
2024-06-06 16:34:56 +02:00
parent 8071748b02
commit 3ae90557fc

View File

@@ -189,6 +189,7 @@ try {
$pin=mt_rand(100000, 999999); $pin=mt_rand(100000, 999999);
$_SESSION["pin"]=$pin; $_SESSION["pin"]=$pin;
$ip = $_SERVER['REMOTE_ADDR']; $ip = $_SERVER['REMOTE_ADDR'];
$username=$row["username"];
send_to_user("[2FA-Pin]\nHello $username\nHere is your pin to log into cyberhex: $pin. If you did not try to log in please take steps to secure your account!\nIP: $ip\n",$username); send_to_user("[2FA-Pin]\nHello $username\nHere is your pin to log into cyberhex: $pin. If you did not try to log in please take steps to secure your account!\nIP: $ip\n",$username);
//send the user to 2fa auth page //send the user to 2fa auth page
$return->msg="send_to_2fa"; $return->msg="send_to_2fa";