wip (#14745)
This commit is contained in:
parent
c397b42242
commit
af1cbc131f
19 changed files with 130 additions and 7 deletions
|
|
@ -71,6 +71,7 @@ export class SigninApiService {
|
|||
'g-recaptcha-response'?: string;
|
||||
'turnstile-response'?: string;
|
||||
'm-captcha-response'?: string;
|
||||
'testcaptcha-response'?: string;
|
||||
};
|
||||
}>,
|
||||
reply: FastifyReply,
|
||||
|
|
@ -194,6 +195,12 @@ export class SigninApiService {
|
|||
throw new FastifyReplyError(400, err);
|
||||
});
|
||||
}
|
||||
|
||||
if (this.meta.enableTestcaptcha) {
|
||||
await this.captchaService.verifyTestcaptcha(body['testcaptcha-response']).catch(err => {
|
||||
throw new FastifyReplyError(400, err);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (same) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue