summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-25 20:27:55 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-25 20:31:10 +1100
commitdeb0da524e9eacf4e90bbc6f1d3101d7f35c4e61 (patch)
tree72c499e2ca70b1f707f869c7ccf772d5ea3de6d2 /src
parentMerge branch 'master' of github.com:fosscord/fosscord-server (diff)
downloadserver-deb0da524e9eacf4e90bbc6f1d3101d7f35c4e61.tar.xz
Rename password_reset config to passwordReset as it messes with config key generation
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/auth/forgot.ts2
-rw-r--r--src/util/config/Config.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/auth/forgot.ts b/src/api/routes/auth/forgot.ts

index faa43dbb..04df97d7 100644 --- a/src/api/routes/auth/forgot.ts +++ b/src/api/routes/auth/forgot.ts
@@ -19,7 +19,7 @@ router.post( const config = Config.get(); if ( - config.password_reset.requireCaptcha && + config.passwordReset.requireCaptcha && config.security.captcha.enabled ) { const { sitekey, service } = config.security.captcha; diff --git a/src/util/config/Config.ts b/src/util/config/Config.ts
index c056d454..de939e6b 100644 --- a/src/util/config/Config.ts +++ b/src/util/config/Config.ts
@@ -61,6 +61,6 @@ export class ConfigValue { defaults: DefaultsConfiguration = new DefaultsConfiguration(); external: ExternalTokensConfiguration = new ExternalTokensConfiguration(); email: EmailConfiguration = new EmailConfiguration(); - password_reset: PasswordResetConfiguration = + passwordReset: PasswordResetConfiguration = new PasswordResetConfiguration(); }