From 4d001e567ee40399ceca539a76b681ec122f605f Mon Sep 17 00:00:00 2001
From: Gustavo Soviersovski <gustavo.as1997@hotmail.com>
Date: Mon, 25 Sep 2017 11:22:02 -0300
Subject: [PATCH] Fix dumb mistake in naming variables

---
 src/libs/models/resetToken.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libs/models/resetToken.js b/src/libs/models/resetToken.js
index 78b9f2bd..abed97ca 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);
-- 
GitLab