diff --git a/src/libs/models/resetToken.js b/src/libs/models/resetToken.js index 78b9f2bd05d2e79d123d9427766eacd52a7673b2..abed97cad98eb90f0f1cc0c2f56f07a252db070e 100644 --- a/src/libs/models/resetToken.js +++ b/src/libs/models/resetToken.js @@ -28,10 +28,10 @@ let ResetToken = new Schema({ }); ResetToken.methods.createResetToken = function (done) { - let verificationToken = this; + let resetToken = this; let token = uuid.v4(); - ResetToken.set('token', token); - ResetToken.reset = false; + resetToken.set('token', token); + resetToken.reset = false; resetToken.save(function(err) { if (err) return done(err);