fixed auth/email import

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
Philip Molares 2020-04-13 13:27:39 +02:00 committed by David Mehren
parent dc58e8a65b
commit 7eb27e012f
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -12,7 +12,7 @@ import google from './google'
import ldap from './ldap' import ldap from './ldap'
import { SamlMiddleware } from './saml' import { SamlMiddleware } from './saml'
import oauth2 from './oauth2' import oauth2 from './oauth2'
import email from './email' import { EmailMiddleware } from './email'
import openid from './openid' import openid from './openid'
const AuthRouter = Router() const AuthRouter = Router()
@ -52,7 +52,7 @@ if (config.isGoogleEnable) AuthRouter.use(google)
if (config.isLDAPEnable) AuthRouter.use(ldap) if (config.isLDAPEnable) AuthRouter.use(ldap)
if (config.isSAMLEnable) AuthRouter.use(SamlMiddleware.getMiddleware()) if (config.isSAMLEnable) AuthRouter.use(SamlMiddleware.getMiddleware())
if (config.isOAuth2Enable) AuthRouter.use(oauth2) if (config.isOAuth2Enable) AuthRouter.use(oauth2)
if (config.isEmailEnable) AuthRouter.use(email) if (config.isEmailEnable) AuthRouter.use(EmailMiddleware.getMiddleware())
if (config.isOpenIDEnable) AuthRouter.use(openid) if (config.isOpenIDEnable) AuthRouter.use(openid)
// logout // logout