修改object生成方法

This commit is contained in:
Li Jianxuan 2014-04-22 09:32:41 +00:00
parent 8411487da1
commit 2df66ef940
1 changed files with 3 additions and 1 deletions

View File

@ -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'));