mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Update src/server/api/private/signup.ts
This commit is contained in:
parent
d2bbd8438e
commit
ee6e720a9c
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ export default async (ctx: Koa.Context) => {
|
|||
// Verify *Captcha
|
||||
// ただしテスト時はこの機構は障害となるため無効にする
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
if (instance.enableHcaptcha && instance.hcaptchaSecretKey) {
|
||||
if (instance.enableHcaptcha && instance.hcaptchaSecretKey) {
|
||||
const success = await verify(instance.hcaptchaSecretKey, body['hcaptcha-response']).then(
|
||||
({ success }) => success,
|
||||
() => false,
|
||||
|
|
Loading…
Reference in a new issue