mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 12:08:02 -05:00
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:
parent
dc58e8a65b
commit
7eb27e012f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue