Skip to content

Commit

Permalink
attempting casing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flbarfield committed Oct 10, 2023
1 parent 28ea9aa commit 9576813
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/passport.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const LocalStrategy = require('passport-local').Strategy
const mongoose = require('mongoose')
const User = require('../models/User')
const User = require('../models/user')

module.exports = function (passport) {
passport.use(new LocalStrategy({ usernameField: 'email' }, async (email, password, done) => {
Expand Down
2 changes: 1 addition & 1 deletion controllers/auth.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const passport = require('passport')
const validator = require('validator')
const User = require('../models/User')
const User = require('../models/user')

exports.getLogin = (req, res) => {
if (req.user) {
Expand Down

0 comments on commit 9576813

Please sign in to comment.