This commit is contained in:
Beat Rubischon 2025-01-18 12:21:35 +02:00 committed by GitHub
commit e207dc9d04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -200,11 +200,6 @@ func Load(configFile string) Configuration {
Conf.Security.UserTokenEncryptionKey, _ = security.GenerateRandomString(32)
log.Printf("No valid `security.usertokenencryptionkey` specified (empty or not 32 characters). Setting to random")
}
if len(Conf.Security.UserTokenSigningKey) != 32 {
Conf.Security.UserTokenSigningKey, _ = security.GenerateRandomString(32)
log.Printf("No valid `security.usertokensigningkey` specified (empty or not 32 characters). Setting to random")
}
}
if len(Conf.Server.SessionKey) != 32 {