adding functionality to send login message
This commit is contained in:
@@ -175,6 +175,11 @@ try {
|
||||
$_SESSION["email"]=$row["email"];
|
||||
$_SESSION["telegram_id"]=$row["telegram_id"];
|
||||
$_SESSION["allow_pw_login"]=$row["allow_pw_login"];
|
||||
$_SESSION["send_login_message"]=$row["send_login_message"];
|
||||
if($_SESSION["send_login_message"]=="1"){
|
||||
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
||||
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);
|
||||
}
|
||||
|
||||
$return = new stdClass();
|
||||
$return->success = true;
|
||||
|
||||
Reference in New Issue
Block a user