summaryrefslogtreecommitdiffstats
path: root/routers/admin
diff options
context:
space:
mode:
authorMorgan Bazalgette <git@howl.moe>2018-01-08 23:28:18 +0100
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2018-01-08 23:28:18 +0100
commit674cfb7cacd99bb236b13db8754b21ae2f555ca8 (patch)
tree61ada7cd00322873dc508f5d7b90023415a37b35 /routers/admin
parentf2b841d0ec129f8718a64f2f410484c3acf61368 (diff)
downloadgitea-674cfb7cacd99bb236b13db8754b21ae2f555ca8.tar.gz
gitea-674cfb7cacd99bb236b13db8754b21ae2f555ca8.zip
Change EncodePasswd to HashPassword (#3329)
* Change EncodePasswd to HashPassword * Create test+benchmark for HashPassword
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 1081f3092f..02b8334564 100644
--- a/routers/admin/users.go
+++ b/routers/admin/users.go
@@ -200,7 +200,7 @@ func EditUserPost(ctx *context.Context, form auth.AdminEditUserForm) {
ctx.Handle(500, "UpdateUser", err)
return
}
- u.EncodePasswd()
+ u.HashPassword()
}
u.LoginName = form.LoginName