Change EncodePasswd to HashPassword (#3329)

* Change EncodePasswd to HashPassword

* Create test+benchmark for HashPassword
This commit is contained in:
Morgan Bazalgette 2018-01-08 23:28:18 +01:00 committed by Kim "BKC" Carlbäcker
parent f2b841d0ec
commit 674cfb7cac
7 changed files with 48 additions and 9 deletions

View file

@ -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