summaryrefslogtreecommitdiff
path: root/packages/backend/src/models
diff options
context:
space:
mode:
authorCyberRex <hspwinx86@gmail.com>2022-10-13 09:19:57 +0900
committerGitHub <noreply@github.com>2022-10-13 09:19:57 +0900
commit1309367884197f4f4d94686fddfbd99fa20262bc (patch)
tree3f21e60ee1bc155a903c403106fbdc6c0e0440b9 /packages/backend/src/models
parentadd webhookId to api request (#9113) (diff)
downloadmisskey-1309367884197f4f4d94686fddfbd99fa20262bc.tar.gz
misskey-1309367884197f4f4d94686fddfbd99fa20262bc.tar.bz2
misskey-1309367884197f4f4d94686fddfbd99fa20262bc.zip
Add Cloudflare Turnstile CAPTCHA support (#9111)
* Add Cloudflare Turnstile CAPTCHA support * Update packages/client/src/components/MkCaptcha.vue Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
Diffstat (limited to 'packages/backend/src/models')
-rw-r--r--packages/backend/src/models/entities/Meta.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/backend/src/models/entities/Meta.ts b/packages/backend/src/models/entities/Meta.ts
index f528b7ac08..fb25e370d2 100644
--- a/packages/backend/src/models/entities/Meta.ts
+++ b/packages/backend/src/models/entities/Meta.ts
@@ -188,6 +188,23 @@ export class Meta {
})
public recaptchaSecretKey: string | null;
+ @Column('boolean', {
+ default: false,
+ })
+ public enableTurnstile: boolean;
+
+ @Column('varchar', {
+ length: 64,
+ nullable: true,
+ })
+ public turnstileSiteKey: string | null;
+
+ @Column('varchar', {
+ length: 64,
+ nullable: true,
+ })
+ public turnstileSecretKey: string | null;
+
@Column('enum', {
enum: ['none', 'all', 'local', 'remote'],
default: 'none',