Skip to content

Commit

Permalink
chore: add extra information in the error logging that may be insecure
Browse files Browse the repository at this point in the history
  • Loading branch information
SeDemal committed Sep 9, 2024
1 parent 6a7532b commit 4ee05a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/auth/ldap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ const ldapLogin = (username: string, password: string) =>
const client = ldap.createClient({
url: env.AUTH_LDAP_URI,
});
client.bind(username, password, (error, res) => {
client.bind(username, password, (error) => {
if (error) {
reject('Invalid username or password');
reject(`Invalid username or password. ${error.code}-${error.name}:${error.message}`);
} else {
resolve(client);
}
Expand Down

0 comments on commit 4ee05a9

Please sign in to comment.