From b7467c28fb8933cd58f2369cddf2715ad8387e9b Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Wed, 19 Mar 2014 06:04:15 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=97=B6=E6=94=B6=E9=9B=86=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/Sookon/User/Account.php | 7 +++---- vendor/Sookon/User/Handle/EditHandle.php | 6 +----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/vendor/Sookon/User/Account.php b/vendor/Sookon/User/Account.php index 3b28788b..b908aec7 100644 --- a/vendor/Sookon/User/Account.php +++ b/vendor/Sookon/User/Account.php @@ -231,8 +231,8 @@ class Account implements EventManagerAwareInterface { $data = array( 'realname'=>$request->getPost('realname'), - 'signature'=>$request->getPost('signature'), - 'description'=>$request->getPost('description') + 'phone'=>$request->getPost('phone'), + 'project'=>$request->getPost('project') ); } @@ -260,8 +260,7 @@ class Account implements EventManagerAwareInterface if($type == "general") { - $data['signature'] = htmlspecialchars($data['signature']); - $data['description'] = htmlspecialchars($data['description']); + }else if($type == "password") { $data['password'] = md5($data['password_new']); diff --git a/vendor/Sookon/User/Handle/EditHandle.php b/vendor/Sookon/User/Handle/EditHandle.php index 89cc7329..528f0026 100644 --- a/vendor/Sookon/User/Handle/EditHandle.php +++ b/vendor/Sookon/User/Handle/EditHandle.php @@ -36,13 +36,9 @@ class EditHandle implements \Sookon\User\Event\EditEvent if(empty($data['realname'])) { - return "起个响亮的名号吧"; + return "请输入姓名"; } - if(mb_strlen($data['realname'],"UTF-8")>10 ) - { - return "这名号也太长了吧,不要超过10个字哦"; - } } if($type == "password")