mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Admin Tools: Fix EXTERNAL_AUTH is 'none'
This commit is contained in:
@@ -25,7 +25,8 @@ import { db } from '../../../../app/src/infrastructure/mongodb.mjs'
|
||||
|
||||
const __dirname = Path.dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
const externalAuth = process.env.EXTERNAL_AUTH ? process.env.EXTERNAL_AUTH.split(' ') : []
|
||||
const externalAuth = process.env.EXTERNAL_AUTH ?
|
||||
process.env.EXTERNAL_AUTH.split(/\s+/).filter(m => m && m !== 'none') : []
|
||||
const availableAuthMethods = ['local', ...externalAuth]
|
||||
|
||||
const userIsAdminUpdatedOnLogin = Object.fromEntries(
|
||||
|
||||
Reference in New Issue
Block a user