From fa084667b9819ec6f6d77758f684ccfe54ead107 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 16 Aug 2021 15:41:37 +0800 Subject: [PATCH] Pman/Login.php --- Pman/Login.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Pman/Login.php b/Pman/Login.php index 1ad498d..6a20063 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -584,22 +584,22 @@ class Pman_Login extends Pman $core_ip_access->sendXMPP(); - $this->jerr('NEW-IP-ADDRESS', array('ip' => $ip)); + $this->jerror('NEW-IP-ADDRESS', "New IP Address = needs approving", array('ip' => $ip)); return; } if(empty($core_ip_access->status)){ - $this->jerr('PENDING-IP-ADDRESS', array('ip' => $ip)); + $this->jerror('PENDING-IP-ADDRESS', "IP is still pending approval", array('ip' => $ip)); } if($core_ip_access->status == -1){ - $this->jerr('BLOCKED-IP-ADDRESS', array('ip' => $ip)); + $this->jerror('BLOCKED-IP-ADDRESS', "Your IP is blocked", array('ip' => $ip)); return; } if($core_ip_access->status == -2 && strtotime($core_ip_access->expire_dt) < strtotime('NOW')){ - $this->jerr('BLOCKED-IP-ADDRESS', array('ip' => $ip)); + $this->jerrpr('BLOCKED-IP-ADDRESS', "Your IP is blocked", array('ip' => $ip)); return; } -- 2.39.2