You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returndone(null,false,{msg: `Email ${email} not found.`});
}
if(!user.password){
returndone(null,false,{
msg:
"Your account was registered using a sign-in provider. To enable password login, sign in using a provider, and then set a password under your user profile.",
});
}
user.comparePassword(password,(err,isMatch)=>{
if(err){
returndone(err);
}
if(isMatch){
returndone(null,user);
}
returndone(null,false,{msg: "Invalid email or password."});