.
This commit is contained in:
parent
c862c01880
commit
24570afc0f
@ -40,7 +40,7 @@ const localEmailOptions = {
|
|||||||
|
|
||||||
passport.use('local-email', new LocalStrategy(localEmailOptions, async (email, password, done) => {
|
passport.use('local-email', new LocalStrategy(localEmailOptions, async (email, password, done) => {
|
||||||
try {
|
try {
|
||||||
const user = await authService.extraMethods.findUser({ email });
|
let user = await authService.extraMethods.findUser({ email });
|
||||||
|
|
||||||
if (_.isNull(user)) {
|
if (_.isNull(user)) {
|
||||||
return done(null, false, { message: 'User not found' })
|
return done(null, false, { message: 'User not found' })
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user