Change default login alert app name to SITE_TITLE, not a hardcoded string

This commit is contained in:
Skylar Ittner 2017-06-23 15:53:09 -06:00
parent 2db9187968
commit 5f139b69de

View File

@ -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";
}