Pman/Login.php
authoredward <edward@roojs.com>
Thu, 11 Jan 2018 02:40:35 +0000 (10:40 +0800)
committeredward <edward@roojs.com>
Thu, 11 Jan 2018 02:40:35 +0000 (10:40 +0800)
Pman/Login.php

index efd8a02..3790a4b 100644 (file)
@@ -464,8 +464,6 @@ class Pman_Login extends Pman
         
         $ip = $this->ip_lookup();
         
-        $this->jerr('BAD-IP-ADDRESS');
-        
         if(empty($ip)){
             $this->jerr('BAD-IP-ADDRESS');
         }
@@ -497,15 +495,15 @@ class Pman_Login extends Pman
             
             $core_ip_access->insert();
             
-            $this->jerr('NEW');
+            $this->jerr('NEW-IP-ADDRESS');
         }
         
         if(empty($core_ip_access->status)){
-            $this->jerr('PENDING');
+            $this->jerr('PENDING-IP-ADDRESS');
         }
         
         if($core_ip_access->status == -1){
-            $this->jerr('BLOCKED');
+            $this->jerr('BLOCKED-IP-ADDRESS');
         }
         
         return true;