Fix incorrect setting loading order (#36735)

This commit is contained in:
wxiaoguang
2026-02-24 23:46:08 +08:00
committed by GitHub
parent 429ba9c010
commit 75efc51e98
3 changed files with 6 additions and 2 deletions
-1
View File
@@ -109,7 +109,6 @@ func generateSaveInternalToken(rootCfg ConfigProvider) {
func loadSecurityFrom(rootCfg ConfigProvider) {
sec := rootCfg.Section("security")
InstallLock = HasInstallLock(rootCfg)
LogInRememberDays = sec.Key("LOGIN_REMEMBER_DAYS").MustInt(31)
SecretKey = loadSecret(sec, "SECRET_KEY_URI", "SECRET_KEY")
if SecretKey == "" {