projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e07f1b5
)
Pman/Login.php
author
edward
<edward@roojs.com>
Tue, 9 Jan 2018 09:08:50 +0000
(17:08 +0800)
committer
edward
<edward@roojs.com>
Tue, 9 Jan 2018 09:08:50 +0000
(17:08 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
956dc79
..
2148ae7
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-471,14
+471,16
@@
class Pman_Login extends Pman
$core_ip_access = DB_DataObject::factory('core_ip_access');
if(!$core_ip_access->count()){
+
+ $core_ip_access = DB_DataObject::factory('core_ip_access');
$core_ip_access->setFrom(array(
'ip' => $ip,
'created_dt' => $core_ip_access->sqlValue("NOW()"),
-
+ 'status' => 1
));
-
return true
;
+
$core_ip_access->insert()
;
}
$core_ip_access->setFrom(array(