Update 2fa.php
This commit is contained in:
@@ -66,8 +66,12 @@ include "../../../api/php/notifications/sendmessage.php"; //to send user notific
|
|||||||
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 {
|
}else {
|
||||||
|
$pin=mt_rand(100000, 999999);
|
||||||
|
$_SESSION["pin"]=$pin;
|
||||||
|
$ip = $_SERVER['REMOTE_ADDR'];
|
||||||
|
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);
|
||||||
echo '<div class="alert alert-danger" role="alert">
|
echo '<div class="alert alert-danger" role="alert">
|
||||||
Incorrect pin.
|
Incorrect pin. A new pin has been sent to you via Telegram. The old pin is no longer valid!
|
||||||
</div>';
|
</div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user