summaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-02-14 01:03:29 +0800
committerGitHub <noreply@github.com>2021-02-13 18:03:29 +0100
commit5e4fa7c703726cfc18ce8741a5d829173f3fec5c (patch)
treef8e6f1965d04f5f39979a269f95d260b351a9b89 /modules/setting/setting.go
parented834126a67aabbe027495d6a79fe415a4be7890 (diff)
downloadgitea-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.go2
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)