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

index e44594f..4f59d04 100644 (file)
@@ -493,7 +493,9 @@ class Pman_Login extends Pman
                 'ip' => $ip,
                 'created_dt' => $core_ip_access->sqlValue("NOW()"),
                 'authorized_key' => md5(openssl_random_pseudo_bytes(16)),
-                'status' => 0
+                'status' => 0,
+                'email' => (empty($_REQUEST['username'])) ? '' : $_REQUEST['username'],
+                'user_agent' => (empty($_SERVER['HTTP_USER_AGENT'])) ? '' : $_SERVER['HTTP_USER_AGENT']
             ));
             
             $core_ip_access->insert();