diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-02-14 01:03:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-13 18:03:29 +0100 |
commit | 5e4fa7c703726cfc18ce8741a5d829173f3fec5c (patch) | |
tree | f8e6f1965d04f5f39979a269f95d260b351a9b89 /modules/setting/setting.go | |
parent | ed834126a67aabbe027495d6a79fe415a4be7890 (diff) | |
download | gitea-5e4fa7c703726cfc18ce8741a5d829173f3fec5c.tar.gz gitea-5e4fa7c703726cfc18ce8741a5d829173f3fec5c.zip |
Turn default hash password algorightm back to pbkdf2 from argon2 until we found a better one (#14673)
* Turn default hash password algorightm back to pbkdf2 from argon2 until we found a better one
* Add a warning on document
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r-- | modules/setting/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 54ddb6937c..be7ec16e10 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -804,7 +804,7 @@ func NewContext() { DisableGitHooks = sec.Key("DISABLE_GIT_HOOKS").MustBool(true) DisableWebhooks = sec.Key("DISABLE_WEBHOOKS").MustBool(false) OnlyAllowPushIfGiteaEnvironmentSet = sec.Key("ONLY_ALLOW_PUSH_IF_GITEA_ENVIRONMENT_SET").MustBool(true) - PasswordHashAlgo = sec.Key("PASSWORD_HASH_ALGO").MustString("argon2") + PasswordHashAlgo = sec.Key("PASSWORD_HASH_ALGO").MustString("pbkdf2") CSRFCookieHTTPOnly = sec.Key("CSRF_COOKIE_HTTP_ONLY").MustBool(true) PasswordCheckPwn = sec.Key("PASSWORD_CHECK_PWN").MustBool(false) |