mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-30 12:32:49 +09:00
Change EncodePasswd to HashPassword (#3329)
* Change EncodePasswd to HashPassword * Create test+benchmark for HashPassword
This commit is contained in:
committed by
Kim "BKC" Carlbäcker
parent
f2b841d0ec
commit
674cfb7cac
@ -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
|
||||
|
Reference in New Issue
Block a user