auth/email: Fix passport import 🐛

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-04-13 14:56:22 +02:00
parent 992affae45
commit 5d3c636c14
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -1,12 +1,12 @@
import { Router, Request, Response, NextFunction } from 'express' import { NextFunction, Request, Response, Router } from 'express'
import passport from 'passport' import passport from 'passport'
import { Strategy as LocalStrategy } from 'passport-local'
import validator from 'validator' import validator from 'validator'
import * as LocalStrategy from 'passport-local'
import { config } from '../../../config' import { config } from '../../../config'
import { User } from '../../../models'
import { logger } from '../../../logger'
import { urlencodedParser } from '../../utils'
import { errors } from '../../../errors' import { errors } from '../../../errors'
import { logger } from '../../../logger'
import { User } from '../../../models'
import { urlencodedParser } from '../../utils'
import { AuthMiddleware } from '../interface' import { AuthMiddleware } from '../interface'
const emailAuth = Router() const emailAuth = Router()