projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6b439b0
)
fix empty system for BAdmin
author
Alan Knowles
<alan@roojs.com>
Mon, 8 Feb 2021 07:26:19 +0000
(15:26 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 8 Feb 2021 07:26:19 +0000
(15:26 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
05d0f17
..
01908bf
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-234,7
+234,7
@@
class Pman_Login extends Pman
if(!$u->loginPublic()){
$this->jerr('Switch fail');
}
if(!$u->loginPublic()){
$this->jerr('Switch fail');
}
-
+
$this->jok('OK');
}
$this->jok('OK');
}
@@
-252,6
+252,12
@@
class Pman_Login extends Pman
if (!empty($_REQUEST['logout'])) {
return $this->logout();
}
if (!empty($_REQUEST['logout'])) {
return $this->logout();
}
+
+ if(!empty($_REQUEST['check_owner_company'])) {
+ $core_company = DB_DataObject::factory('core_company');
+ $core_company->comptype = 'OWNER';
+ $this->jok($core_company->count());
+ }
if (!empty($_REQUEST['passwordRequest'])) { //|| (strpos($_REQUEST['username'], '@') < 1)) {
return $this->passwordRequest($_REQUEST['passwordRequest']);
if (!empty($_REQUEST['passwordRequest'])) { //|| (strpos($_REQUEST['username'], '@') < 1)) {
return $this->passwordRequest($_REQUEST['passwordRequest']);