From 5f139b69de2c63503c4287888760d57921476a8c Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Fri, 23 Jun 2017 15:53:09 -0600 Subject: [PATCH] Change default login alert app name to SITE_TITLE, not a hardcoded string --- lib/login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/login.php b/lib/login.php index 0b7b3dd..4ffd107 100644 --- a/lib/login.php +++ b/lib/login.php @@ -282,7 +282,7 @@ function doLoginUser($username, $password) { * @param String $username the account username * @return Mixed TRUE if successful, error string if not */ -function sendLoginAlertEmail($username, $appname = "Portal") { +function sendLoginAlertEmail($username, $appname = SITE_TITLE) { if (is_empty(ADMIN_EMAIL) || filter_var(ADMIN_EMAIL, FILTER_VALIDATE_EMAIL) === FALSE) { return "false"; }