mirror of https://github.com/calzoneman/sync.git
Fix DB purge of expired password reset reqs
3 year old bug introduced when refactoring 2.x -> 3.0. Never worked in the first place.
This commit is contained in:
parent
8e74b0c765
commit
089ac75e9a
|
@ -2,7 +2,7 @@
|
|||
"author": "Calvin Montgomery",
|
||||
"name": "CyTube",
|
||||
"description": "Online media synchronizer and chat",
|
||||
"version": "3.35.3",
|
||||
"version": "3.35.4",
|
||||
"repository": {
|
||||
"url": "http://github.com/calzoneman/sync"
|
||||
},
|
||||
|
|
|
@ -209,7 +209,7 @@ module.exports.cleanOldPasswordResets = function (callback) {
|
|||
callback = blackHole;
|
||||
}
|
||||
|
||||
var query = "DELETE FROM aliases WHERE time < ?";
|
||||
var query = "DELETE FROM password_reset WHERE expire < ?";
|
||||
module.exports.query(query, [Date.now() - 24*60*60*1000], callback);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue