Pman/Login.php
authoredward <edward@roojs.com>
Mon, 15 Jan 2018 07:38:05 +0000 (15:38 +0800)
committeredward <edward@roojs.com>
Mon, 15 Jan 2018 07:38:05 +0000 (15:38 +0800)
Pman/Login.php

index dd33a79..f173316 100644 (file)
@@ -454,7 +454,7 @@ class Pman_Login extends Pman
         $this->jok($u);
     }
     
-    function ip_validate()
+    function ip_checking()
     {
         if(empty($this->ip_management)){
             return;
@@ -475,6 +475,7 @@ class Pman_Login extends Pman
             $core_ip_access->setFrom(array(
                 'ip' => $ip,
                 'created_dt' => $core_ip_access->sqlValue("NOW()"),
+                'authorized_key' => md5(openssl_random_pseudo_bytes(16)),
                 'status' => 1
             ));