summaryrefslogtreecommitdiffstats
path: root/routers/admin
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-13 11:26:25 -0400
committerUnknwon <u@gogs.io>2015-09-13 11:26:25 -0400
commitb0bf4cc1cb6e68968fa4a6076f57045a268026e9 (patch)
tree8af89b3d3a72e7769b369603884eaa988e46e548 /routers/admin
parent98108e379d8931dc7eeafa25acf4e523039b6502 (diff)
downloadgitea-b0bf4cc1cb6e68968fa4a6076f57045a268026e9.tar.gz
gitea-b0bf4cc1cb6e68968fa4a6076f57045a268026e9.zip
fix #1632 and #1606
Diffstat (limited to 'routers/admin')
-rw-r--r--routers/admin/users.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/admin/users.go b/routers/admin/users.go
index 036424f140..b04cfc13bd 100644
--- a/routers/admin/users.go
+++ b/routers/admin/users.go
@@ -186,7 +186,6 @@ func EditUserPost(ctx *middleware.Context, form auth.AdminEditUserForm) {
if u.LoginSource != loginSource {
u.LoginSource = loginSource
u.LoginType = loginType
- u.LoginName = form.LoginName
}
}
@@ -196,6 +195,7 @@ func EditUserPost(ctx *middleware.Context, form auth.AdminEditUserForm) {
u.EncodePasswd()
}
+ u.LoginName = form.LoginName
u.FullName = form.FullName
u.Email = form.Email
u.Website = form.Website