codeberg-forgejo/routers/api/v1/admin
zeripath c702e7995d
Provide the ability to set password hash algorithm parameters (#22942) (#22943)
Backport #22942

This PR refactors and improves the password hashing code within gitea
and makes it possible for server administrators to set the password
hashing parameters

In addition it takes the opportunity to adjust the settings for `pbkdf2`
in order to make the hashing a little stronger.

The majority of this work was inspired by PR #14751 and I would like to
thank @boppy for their work on this.

Thanks to @gusted for the suggestion to adjust the `pbkdf2` hashing
parameters.

Close #14751

---------

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-02-19 15:35:52 +08:00
..
adopt.go Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
cron.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
org.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
repo.go Add `ContextUser` to http request context (#18798) 2022-03-26 17:04:22 +08:00
user.go Provide the ability to set password hash algorithm parameters (#22942) (#22943) 2023-02-19 15:35:52 +08:00