...
|
...
|
@@ -281,7 +281,7 @@ class User extends Api |
|
|
|
|
|
$ret = $this->auth->direct($new_id);
|
|
|
$user = new \app\admin\model\User;
|
|
|
$user->save(['default'=>true],['id'=>$new_id]);
|
|
|
$user->save(['is_default'=>true],['id'=>$new_id]);
|
|
|
|
|
|
if (!$ret) {
|
|
|
$this->error($this->auth->getError());
|
...
|
...
|
|