projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f585dc1
)
Pman/Login.php
author
edward
<edward@roojs.com>
Tue, 9 Jan 2018 09:52:05 +0000
(17:52 +0800)
committer
edward
<edward@roojs.com>
Tue, 9 Jan 2018 09:52:05 +0000
(17:52 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
60a8ba9
..
1bfe2d7
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-470,7
+470,7
@@
class Pman_Login extends Pman
$core_ip_access = DB_DataObject::factory('core_ip_access');
$core_ip_access = DB_DataObject::factory('core_ip_access');
- if(!DB_DataObject::factory('core_ip_access')->count()){
+ if(!DB_DataObject::factory('core_ip_access')->count()){
// first ip we always mark it as approved..
$core_ip_access = DB_DataObject::factory('core_ip_access');
$core_ip_access = DB_DataObject::factory('core_ip_access');
@@
-485,9
+485,10
@@
class Pman_Login extends Pman
$core_ip_access = DB_DataObject::factory('core_ip_access');
$core_ip_access = DB_DataObject::factory('core_ip_access');
- $core_ip_access->setFrom(array(
- 'ip' => $ip
- ));
+ if(!$core_ip_access->get('ip', $ip)){
+
+ }
+
}
}