修复超级管理员无法修改用户真实姓名的BUG

pull/219/head
Minho 2018-02-05 09:06:47 +08:00
parent e69ea03d7b
commit 7e98f2c396
2 changed files with 2 additions and 1 deletions

View File

@ -212,6 +212,7 @@ func (c *ManagerController) EditMember() {
member.Email = email
member.Phone = phone
member.Description = description
member.RealName = c.GetString("real_name")
if password1 != "" && password2 != password1 {
c.JsonResult(6001, "确认密码不正确")
}

View File

@ -47,7 +47,7 @@
</div>
<div class="form-group">
<label>真实姓名</label>
<input type="text" name="real_name" class="form-control" value="{{.Member.RealName}}" placeholder="真实姓名">
<input type="text" name="real_name" class="form-control" value="{{.Model.RealName}}" placeholder="真实姓名">
</div>
<div class="form-group">
<label>用户密码</label>