فهرست منبع

Bug fix: email reset was now lower casing the entered email.

Lee Morgan 5 سال پیش
والد
کامیت
0ad8e18901
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      controllers/passwordReset.js

+ 1 - 1
controllers/passwordReset.js

@@ -12,7 +12,7 @@ module.exports = {
     },
 
     generateCode: function(req, res){
-        Merchant.findOne({email: req.body.email})
+        Merchant.findOne({email: req.body.email.toLowerCase()})
             .then((merchant)=>{
                 if(merchant === null){
                     req.session.error = "USER WITH THIS EMAIL DOES NOT EXIST";