From 2df66ef94033aec887cc8853f6665633d11accc5 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Tue, 22 Apr 2014 09:32:41 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9object=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/Sookon/User/Account.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor/Sookon/User/Account.php b/vendor/Sookon/User/Account.php index acfd3dbc..f8a58bca 100644 --- a/vendor/Sookon/User/Account.php +++ b/vendor/Sookon/User/Account.php @@ -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'));