diff options
author | Morgan Bazalgette <git@howl.moe> | 2018-01-08 23:28:18 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2018-01-08 23:28:18 +0100 |
commit | 674cfb7cacd99bb236b13db8754b21ae2f555ca8 (patch) | |
tree | 61ada7cd00322873dc508f5d7b90023415a37b35 /cmd | |
parent | f2b841d0ec129f8718a64f2f410484c3acf61368 (diff) | |
download | gitea-674cfb7cacd99bb236b13db8754b21ae2f555ca8.tar.gz gitea-674cfb7cacd99bb236b13db8754b21ae2f555ca8.zip |
Change EncodePasswd to HashPassword (#3329)
* Change EncodePasswd to HashPassword
* Create test+benchmark for HashPassword
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/admin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/admin.go b/cmd/admin.go index 4df28358a2..5000fc2d4d 100644 --- a/cmd/admin.go +++ b/cmd/admin.go @@ -111,7 +111,7 @@ func runChangePassword(c *cli.Context) error { if user.Salt, err = models.GetUserSalt(); err != nil { return fmt.Errorf("%v", err) } - user.EncodePasswd() + user.HashPassword() if err := models.UpdateUserCols(user, "passwd", "salt"); err != nil { return fmt.Errorf("%v", err) } |