This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/modules/setting
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
..
attachment.go
cache.go
cors.go
cron.go Allow extended config on cron settings (#12939) 2020-09-25 09:58:09 +01:00
cron_test.go
database.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
database_sqlite.go
database_test.go
directory.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
federation.go
git.go
i18n.go
indexer.go
indexer_test.go
lfs.go
log.go
mailer.go Allow HOST has no port (#22280) (#22409) 2023-01-12 09:57:03 +08:00
mailer_test.go Allow HOST has no port (#22280) (#22409) 2023-01-12 09:57:03 +08:00
markup.go Allow render HTML with css/js external links (#19017) 2022-06-16 11:33:23 +08:00
migrations.go
mime_type_map.go
mirror.go
oauth2_client.go
packages.go
picture.go Fix bug of DisableGravatar default value (#22297) 2023-01-01 20:20:04 +08:00
project.go
proxy.go
queue.go Add generic set type (#21408) 2022-10-12 13:18:26 +08:00
repository.go Add setting to disable the git apply step in test patch (#22130) (#22170) 2022-12-22 11:59:10 +01:00
service.go
session.go
setting.go Provide the ability to set password hash algorithm parameters (#22942) (#22943) 2023-02-19 15:35:52 +08:00
setting_test.go
storage.go
storage_test.go
task.go
webhook.go