make api/captcha always verify token and setting key
This commit is contained in:
parent
235a0e1f4b
commit
8da6b23cfb
|
@ -93,11 +93,6 @@ export async function verifyCaptcha(
|
|||
}
|
||||
const key = `human:${ip}`;
|
||||
|
||||
const ttl: number = await redis.ttlAsync(key);
|
||||
if (ttl > 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
switch (CAPTCHA_METHOD) {
|
||||
case 1:
|
||||
if (!await verifyReCaptcha(token, ip)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user