Disable UserTokenSigningKey randomization

This commit is contained in:
Beat Rubischon 2024-04-12 15:03:23 +02:00
parent d76ccf324a
commit 8e91ec2138
No known key found for this signature in database
GPG key ID: F21409DDEBF55961

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 {