summary refs log tree commit diff
path: root/src/util/Config.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-01 13:54:12 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-01 13:54:12 +0200
commitbbeab4da65c245cb6083554a44fa12293902424d (patch)
treed964467f79a2abe45eeacd9dd35d9d2670ce99ff /src/util/Config.ts
parent:sparkles: Channel get Route (diff)
downloadserver-ts-bbeab4da65c245cb6083554a44fa12293902424d.tar.xz
:art: added optional captcha to login route
Diffstat (limited to 'src/util/Config.ts')
-rw-r--r--src/util/Config.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/util/Config.ts b/src/util/Config.ts

index e500197f..f1f0f458 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts
@@ -1,6 +1,5 @@ import { Config, Snowflake } from "@fosscord/server-util"; import crypto from "crypto"; -import fs from "fs"; export default { init() { @@ -75,10 +74,14 @@ export interface DefaultOptions { forwadedFor: string | null; captcha: { enabled: boolean; - service: "recaptcha" | null; // TODO: hcaptcha, custom + service: "recaptcha" | "hcaptcha" | null; // TODO: hcaptcha, custom sitekey: string | null; + secret: string | null; }; }; + login: { + requireCaptcha: boolean; + }; register: { email: { required: boolean; @@ -155,8 +158,12 @@ export const DefaultOptions: DefaultOptions = { enabled: false, service: null, sitekey: null, + secret: null, }, }, + login: { + requireCaptcha: false, + }, register: { email: { required: true,