This commit is contained in:
David Arranz 2019-08-07 15:55:58 +02:00
parent c862c01880
commit 24570afc0f

View File

@ -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' })