mirror of
https://github.com/ajnart/homarr.git
synced 2025-10-26 08:06:12 +01:00
chore: add extra information in the error logging that may be insecure
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user