added one more condition to bot detection

This commit is contained in:
Jack 2020-10-19 23:08:54 +01:00
parent d393e35a85
commit de60f28a40

View file

@ -828,7 +828,7 @@ exports.testCompleted = functions
request.obj.name = name;
//check keyspacing and duration here
if (obj.mode === "time" && obj.wpm > 130) {
if (obj.mode === "time" && obj.wpm > 130 && obj.testDuration < 122) {
if (verified === false || verified === undefined) {
if (keySpacing !== null && keyDuration !== null) {
if (