passport auth integrated to login route

This commit is contained in:
Mikayla Dobson
2022-07-05 19:34:39 -05:00
parent 4b4c7a7bb0
commit 8029bf34f4
3 changed files with 10 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ module.exports = (app) => {
passport.use(new LocalStrategy(async (email, password, done) => {
try {
const response = await LoginService(email, password);
const response = await LoginService({ email: email, password: password });
return done(null, response);
} catch(e) {
return done(e);