修改object生成方法
This commit is contained in:
parent
8411487da1
commit
2df66ef940
|
@ -162,7 +162,9 @@ class Account implements EventManagerAwareInterface
|
|||
$results = $this->getEventManager()->trigger('login.success.createAvatar', $this, compact('email'));
|
||||
$data['avatar'] = $results->last();
|
||||
|
||||
$auth->getStorage()->write((object)$data);
|
||||
$user = json_decode(json_encode($data));;
|
||||
|
||||
$auth->getStorage()->write($user);
|
||||
|
||||
$id = $data['id'];
|
||||
$results = $this->getEventManager()->trigger('login.success.updateStatus', $this, compact('id'));
|
||||
|
|
Loading…
Reference in New Issue