Change USE_LDAP to only detect true

This commit is contained in:
Jared He 2021-10-25 20:17:46 -05:00
parent 2f11260ec7
commit 6c0879c4b3
1 changed files with 1 additions and 4 deletions

View File

@ -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({