Change USE_LDAP to only detect true
This commit is contained in:
parent
2f11260ec7
commit
6c0879c4b3
|
@ -15,10 +15,7 @@ export async function getMembers(
|
|||
}
|
||||
|
||||
let members: Member[] = [];
|
||||
if (
|
||||
process.env.USE_LDAP !== undefined &&
|
||||
["true", "1", "y", "yes"].includes(process.env.USE_LDAP.toLowerCase())
|
||||
) {
|
||||
if (process.env.USE_LDAP !== undefined && process.env.USE_LDAP === "true") {
|
||||
const url = "ldap://ldap1.csclub.uwaterloo.ca";
|
||||
const searchDN = "ou=People,dc=csclub,dc=uwaterloo,dc=ca";
|
||||
const client = new Client({
|
||||
|
|
Loading…
Reference in New Issue