projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a934614
)
Pman/Login.php
author
edward
<edward@roojs.com>
Mon, 15 Jan 2018 08:03:00 +0000
(16:03 +0800)
committer
edward
<edward@roojs.com>
Mon, 15 Jan 2018 08:03:00 +0000
(16:03 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
e44594f
..
4f59d04
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-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();