mirror of
1
Fork 0
forgejo/routers/web/user
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
..
setting Provide the ability to set password hash algorithm parameters (#22942) (#22943) 2023-02-19 15:35:52 +08:00
avatar.go Return 404 when user is not found on avatar (#21476) 2022-10-16 19:48:17 +01:00
code.go fix: code search title translation (#22285) (#22316) 2023-01-03 11:33:55 +08:00
home.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
home_test.go Add some api integration tests (#18872) 2022-10-18 00:23:27 +08:00
main_test.go Use a struct as test options (#19393) 2022-04-14 21:58:21 +08:00
notification.go Add pages to view watched repos and subscribed issues/PRs (#17156) 2022-09-29 22:09:14 +03:00
package.go Add support for HEAD requests in Maven registry (#21834) (#21929) 2022-11-25 13:46:28 +02:00
profile.go Add user/organization code search (#19977) 2022-10-11 00:12:03 +01:00
search.go Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
stop_watch.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
task.go Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00