Skip to content

Commit

Permalink
修复超级管理员无法修改用户真实姓名的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
lifei6671 committed Feb 5, 2018
1 parent e69ea03 commit 7e98f2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions controllers/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "确认密码不正确")
}
Expand Down
2 changes: 1 addition & 1 deletion views/manager/edit_users.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 7e98f2c

Please sign in to comment.