projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
82f3e98
)
Pman/Login.php
author
Alan Knowles
<alan@akbkhome.com>
Tue, 21 Dec 2010 02:45:54 +0000
(10:45 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 21 Dec 2010 02:45:54 +0000
(10:45 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
c4e892b
..
ec63444
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-200,6
+200,15
@@
class Pman_Login extends Pman
$this->jerr('Account disabled');
}
$this->jerr('Account disabled');
}
+ // check if config allows non-owner passwords.
+ // auth_company = "OWNER"
+ $ff= HTML_FlexyFramework::get();
+ if (!empty($ff->Pman['auth_company']) && $ff->Pman['auth_company'] != $u->company()->comptype) {
+ $this->jerr("Login not permited to outside companies");
+ }
+
+
+
if ($u->checkPassword($_REQUEST['password'])) {
$u->login();
// we might need this later..
if ($u->checkPassword($_REQUEST['password'])) {
$u->login();
// we might need this later..