feat: make used bcrypt rounds configurable

This allows to configure the used bcrypt rounds and set it to 4 in tests, greatly speeding up the tests. It's not really required to set this to another value but it might be in the future as computers get faster.
This commit is contained in:
kolaente
2024-10-13 15:38:04 +02:00
parent e22fb1e73e
commit a88124cfce
17 changed files with 69 additions and 59 deletions

View File

@@ -65,6 +65,7 @@ const (
ServiceAllowIconChanges Key = `service.allowiconchanges`
ServiceCustomLogoURL Key = `service.customlogourl`
ServiceEnablePublicTeams Key = `service.enablepublicteams`
ServiceBcryptRounds Key = `service.bcryptrounds`
SentryEnabled Key = `sentry.enabled`
SentryDsn Key = `sentry.dsn`
@@ -318,6 +319,7 @@ func InitDefaultConfig() {
ServiceDemoMode.setDefault(false)
ServiceAllowIconChanges.setDefault(true)
ServiceEnablePublicTeams.setDefault(false)
ServiceBcryptRounds.setDefault(11)
// Sentry
SentryDsn.setDefault("https://440eedc957d545a795c17bbaf477497c@o1047380.ingest.sentry.io/4504254983634944")