|
@@ -31,7 +31,7 @@ class Auth
|
|
|
*/
|
|
|
public function __construct()
|
|
|
{
|
|
|
- $this->save = new Oper(false, 'cookie');
|
|
|
+ $this->save = new Oper(false, 'session');
|
|
|
$this->name = 'manage';
|
|
|
}
|
|
|
|
|
@@ -190,6 +190,7 @@ class Auth
|
|
|
if (!$info) {
|
|
|
return;
|
|
|
}
|
|
|
+ $state = true;
|
|
|
Dever::config('base')->getAdmin = 1;
|
|
|
if ($state == true && Dever::config('base')->getAdmin && $info && isset($info['id'])) {
|
|
|
$admin = Dever::db('manage/admin')->one($info['id']);
|
|
@@ -203,6 +204,7 @@ class Auth
|
|
|
if ($admin['company']) {
|
|
|
$info['company'] = $admin['company'];
|
|
|
}
|
|
|
+ $info['username'] = $admin['username'];
|
|
|
}
|
|
|
|
|
|
|