make api/captcha always verify token and setting key

This commit is contained in:
HF 2020-05-18 10:22:22 +02:00
parent 235a0e1f4b
commit 8da6b23cfb

View File

@ -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)) {