|
@@ -78,9 +78,9 @@ module.exports = {
|
|
|
return merchant.save();
|
|
return merchant.save();
|
|
|
})
|
|
})
|
|
|
.then((merchant)=>{
|
|
.then((merchant)=>{
|
|
|
- req.session.user = merchant._id;
|
|
|
|
|
|
|
+ req.session.success = "EMAIL VERIFIED. PLEASE LOG IN";
|
|
|
|
|
|
|
|
- return res.redirect("/dashboard");
|
|
|
|
|
|
|
+ return res.redirect("/login");
|
|
|
})
|
|
})
|
|
|
.catch((err)=>{
|
|
.catch((err)=>{
|
|
|
if(typeof(err) === "string"){
|
|
if(typeof(err) === "string"){
|