From 7eb27e012fb084a7e3bc25f41ca7672e80e9e35c Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Mon, 13 Apr 2020 13:27:39 +0200 Subject: [PATCH] fixed auth/email import Signed-off-by: Philip Molares Signed-off-by: David Mehren --- lib/web/auth/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/web/auth/index.ts b/lib/web/auth/index.ts index 29997c945..aae33dd72 100644 --- a/lib/web/auth/index.ts +++ b/lib/web/auth/index.ts @@ -12,7 +12,7 @@ import google from './google' import ldap from './ldap' import { SamlMiddleware } from './saml' import oauth2 from './oauth2' -import email from './email' +import { EmailMiddleware } from './email' import openid from './openid' const AuthRouter = Router() @@ -52,7 +52,7 @@ if (config.isGoogleEnable) AuthRouter.use(google) if (config.isLDAPEnable) AuthRouter.use(ldap) if (config.isSAMLEnable) AuthRouter.use(SamlMiddleware.getMiddleware()) 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) // logout