mirror of
https://github.com/sasjs/server.git
synced 2026-01-07 14:40:05 +00:00
fix: no need to restrict api endpoints when ldap auth is applied
This commit is contained in:
@@ -86,7 +86,7 @@ const login = async (
|
||||
if (!user) throw new Error('Username is not found.')
|
||||
|
||||
if (
|
||||
process.env.AUTH_MECHANISM === AuthProviderType.LDAP &&
|
||||
process.env.AUTH_PROVIDERS === AuthProviderType.LDAP &&
|
||||
user.authProvider === AuthProviderType.LDAP
|
||||
) {
|
||||
const ldapClient = await LDAPClient.init()
|
||||
|
||||
Reference in New Issue
Block a user