diff --git a/node/db/Pad.js b/node/db/Pad.js index 0db0a9bda..7015ef7cc 100644 --- a/node/db/Pad.js +++ b/node/db/Pad.js @@ -532,5 +532,5 @@ function timeSensitiveCompare(hashStr, password) { var timestamp = password.split("$")[1]; return password === hash(hashStr, timestamp) - && timestamp - new Date().getTime() > 0; + && timestamp > new Date().getTime(); }