修改用户编辑时收集的字段
This commit is contained in:
parent
bc85263035
commit
b7467c28fb
|
@ -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']);
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue