修改用户编辑时收集的字段

This commit is contained in:
Li Jianxuan 2014-03-19 06:04:15 +00:00
parent bc85263035
commit b7467c28fb
2 changed files with 4 additions and 9 deletions

View File

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

View File

@ -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")