]> jfr.im git - irc/unrealircd/unrealircd-webpanel-plugins.git/commitdiff
Fix failed message
authorValerie Liu <redacted>
Mon, 24 Jun 2024 15:27:44 +0000 (23:27 +0800)
committerGitHub <redacted>
Mon, 24 Jun 2024 15:27:44 +0000 (23:27 +0800)
php_mailer/php_mailer.php

index 310a5271e5a16be0669ed0e4a7e72d20efb5af25..fd7b2b19688b6c4fcbea6a843815ca671fbee4c6 100644 (file)
@@ -18,7 +18,7 @@ class php_mailer
 {
        public $name = "php_mailer";
        public $author = "Valware";
-       public $version = "1.1";
+       public $version = "1.1.1";
        public $description = "Send mail using PHPMailer()";
        public $email = "v.a.pond@outlook.com";
 
@@ -89,7 +89,7 @@ class php_mailer
        /**
         * Send a notification about the failed attempt
         */
-       public static function user_login_fail_notif($fail)
+       public static function user_login_fail_notif($user)
        {
                self::send_mail(
                        ["email" => get_config("smtp::username"), "name" => get_config("smtp::from_name")],
@@ -100,7 +100,7 @@ class php_mailer
                        "IP: ".$_SERVER['REMOTE_ADDR']." (".$_SERVER['HTTP_CF_IPCOUNTRY'].")<br>".
                        "User Agent: ".$_SERVER['HTTP_USER_AGENT']."<br><br>"
                );
-               $user = new PanelUser($fail['login']);
+               $user = new PanelUser($user['login']);
                if ($user->email)
                        self::send_mail(
                                ["email" => $user->email, "name" => $user->first_name . " " . $user->last_name],