From 1603c2f5ddb1b100e601930827edca875e6bae10 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 26 Nov 2011 21:05:52 +0100 Subject: [PATCH] Small fix for elegance. --- node/db/Pad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }