Small fix for elegance.

This commit is contained in:
jaseg 2011-11-26 21:05:52 +01:00
parent 082c732429
commit 1603c2f5dd

View file

@ -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();
}