From 3973a0dd005b64926a82e34b5c8a26ef95829775 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sat, 21 Jan 2023 14:27:40 +0000 Subject: [PATCH] Adjust hardcoded ITFlow to config_app_name --- login.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/login.php b/login.php index cba46daf..9c798436 100644 --- a/login.php +++ b/login.php @@ -24,7 +24,7 @@ if ($failed_login_count >= 15) { mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Login', log_action = 'Blocked', log_description = '$ip was blocked access to login due to IP lockout', log_ip = '$ip', log_user_agent = '$user_agent'"); // Inform user & quit processing page - exit("

ITFlow

Your IP address has been blocked due to repeated failed login attempts. Please try again later.

This action has been logged."); + exit("

$config_app_name

Your IP address has been blocked due to repeated failed login attempts. Please try again later.

This action has been logged."); } // Query Settings for "default" company (as companies are being removed shortly) @@ -146,8 +146,8 @@ if (isset($_POST['login'])) { // Email the tech to advise their credentials may be compromised if (!empty($config_smtp_host)) { - $subject = "Important: ITFlow failed 2FA login attempt for $user_name"; - $body = "Hi $user_name,

A recent login to ITFlow was unsuccessful due to an incorrect 2FA code. If you did not attempt this login, your credentials may be compromised.

Thanks,
ITFlow"; + $subject = "Important: $config_app_name failed 2FA login attempt for $user_name"; + $body = "Hi $user_name,

A recent login to $config_app_name was unsuccessful due to an incorrect 2FA code. If you did not attempt this login, your credentials may be compromised.

Thanks,
ITFlow"; $mail = sendSingleEmail($config_smtp_host, $config_smtp_username, $config_smtp_password, $config_smtp_encryption, $config_smtp_port, $config_mail_from_email, $config_mail_from_name,