Removed logging

master
Keith Irwin 2017-04-28 14:15:20 -04:00
parent ffa829bfac
commit 49c6a105a7
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ const userSchema = new mongoose.Schema({
// Reuse old token, resetting clock
if ( user.auth.passTokenExpires >= Date.now() ){
console.log(`Reusing old password token...`);
//console.log(`Reusing old password token...`);
user.auth.passTokenExpires = Date.now() + 3600000; // 1 hour
user.save()
.then( ()=>{
@ -92,7 +92,7 @@ const userSchema = new mongoose.Schema({
// Create new token
else {
console.log(`Creating new password token...`);
//console.log(`Creating new password token...`);
crypto.randomBytes(16, (err,buf)=>{
if (err){ return next(err,null,null); }
if (buf) {