fix: client captcha (#8186)

This commit is contained in:
darkskygit
2024-09-10 09:34:20 +00:00
parent 9ccf517e06
commit 95738e796f
2 changed files with 43 additions and 1 deletions

View File

@@ -90,7 +90,7 @@ export class CaptchaService {
const challenge = credential.challenge;
if (typeof challenge === 'string' && challenge) {
const resource = await this.token
.verifyToken(TokenType.Challenge, challenge)
.getToken(TokenType.Challenge, challenge)
.then(token => token?.credential);
if (!resource) {