Skip to content
Snippets Groups Projects
Commit 0044fd60 authored by Gustavo Soviersovski's avatar Gustavo Soviersovski
Browse files

Change expiry time to 1 day

parent 76645ffe
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -40,7 +40,7 @@ ResetToken.methods.createResetToken = function (done) {
}
ResetToken.methods.hasExpired = function () {
var now = new Date();
return (now - this.createdAt) > 10/*86400*/; //Token is a day old
return (now - this.createdAt) > 86400; //Expire if token is 1 day old
};
module.exports = mongoose.model('ResetToken', ResetToken);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment