mirror of https://github.com/mindoc-org/mindoc.git
修复超级管理员无法修改用户真实姓名的BUG
parent
e69ea03d7b
commit
7e98f2c396
|
@ -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, "确认密码不正确")
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue