diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-02-14 04:19:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-13 21:19:33 +0100 |
commit | c0320065b67439f1c87130a3fcd2f821fc7722bd (patch) | |
tree | d4ef2cbdde54ab7642edc1817045d4f6315f809f /modules | |
parent | a1b74c55092b846f08a3432b313abcc4994b7259 (diff) | |
download | gitea-c0320065b67439f1c87130a3fcd2f821fc7722bd.tar.gz gitea-c0320065b67439f1c87130a3fcd2f821fc7722bd.zip |
Turn default hash password algorightm back to pbkdf2 from argon2 until we found a better one (#14673) (#14675)
* Turn default hash password algorightm back to pbkdf2 from argon2 until we found a better one
* Add a warning on document
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules')
-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 7ae8bb352d..77a18e3593 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -771,7 +771,7 @@ func NewContext() { ImportLocalPaths = sec.Key("IMPORT_LOCAL_PATHS").MustBool(false) DisableGitHooks = sec.Key("DISABLE_GIT_HOOKS").MustBool(true) 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) |