diff options
| author | CyberRex <hspwinx86@gmail.com> | 2022-10-13 09:19:57 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-13 09:19:57 +0900 |
| commit | 1309367884197f4f4d94686fddfbd99fa20262bc (patch) | |
| tree | 3f21e60ee1bc155a903c403106fbdc6c0e0440b9 /packages/backend/src/models | |
| parent | add webhookId to api request (#9113) (diff) | |
| download | misskey-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.ts | 17 |
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', |