Pman/Login.php
authoredward <edward@roojs.com>
Mon, 15 Jan 2018 08:17:52 +0000 (16:17 +0800)
committeredward <edward@roojs.com>
Mon, 15 Jan 2018 08:17:52 +0000 (16:17 +0800)
Pman/Login.php

index c62f12a..4670415 100644 (file)
@@ -260,7 +260,7 @@ class Pman_Login extends Pman
         
         $ip = $this->ip_lookup();
         // ratelimit
-        if (!empty($_SERVER['REMOTE_ADDR'])) {
+        if (!empty($ip)) {
             //DB_DataObject::DebugLevel(1);
             $e = DB_DataObject::Factory('Events');
             $e->action = 'LOGIN-BAD';