mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 06:37:10 -04:00
Small fix for elegance.
This commit is contained in:
parent
082c732429
commit
1603c2f5dd
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue