From 674cfb7cacd99bb236b13db8754b21ae2f555ca8 Mon Sep 17 00:00:00 2001 From: Morgan Bazalgette Date: Mon, 8 Jan 2018 23:28:18 +0100 Subject: Change EncodePasswd to HashPassword (#3329) * Change EncodePasswd to HashPassword * Create test+benchmark for HashPassword --- routers/api/v1/admin/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api/v1/admin') diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go index fc1d3da2f1..5bbb8a7afd 100644 --- a/routers/api/v1/admin/user.go +++ b/routers/api/v1/admin/user.go @@ -132,7 +132,7 @@ func EditUser(ctx *context.APIContext, form api.EditUserOption) { ctx.Error(500, "UpdateUser", err) return } - u.EncodePasswd() + u.HashPassword() } u.LoginName = form.LoginName -- cgit v1.2.3