* Add admin vision for install.
This commit is contained in:
@@ -472,13 +472,14 @@ class installModel extends model
|
||||
$this->dao->insert(TABLE_COMPANY)->data($company)->autoCheck()->exec();
|
||||
if(!dao::isError())
|
||||
{
|
||||
$visions = $this->config->edition == 'ipd' ? 'or,rnd,lite' : 'rnd,lite';
|
||||
/* Set admin. */
|
||||
$admin = new stdclass();
|
||||
$admin->account = $this->post->account;
|
||||
$admin->realname = $this->post->account;
|
||||
$admin->password = md5($this->post->password);
|
||||
$admin->gender = 'f';
|
||||
$admin->visions = 'rnd,lite';
|
||||
$admin->visions = $visions;
|
||||
$this->dao->replace(TABLE_USER)->data($admin)->exec();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user