.
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) => {
|
||||
try {
|
||||
const user = await authService.extraMethods.findUser({ email });
|
||||
let user = await authService.extraMethods.findUser({ email });
|
||||
|
||||
if (_.isNull(user)) {
|
||||
return done(null, false, { message: 'User not found' })
|
||||
|
||||
Loading…
Reference in New Issue
Block a user