summary refs log tree commit diff
diff options
context:
space:
mode:
-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();
 }