More external ldap fixes after the test tests the correct thing
This commit is contained in:
@@ -535,16 +535,12 @@ describe('External LDAP', function () {
|
||||
});
|
||||
|
||||
it('succeeds for known user with correct password', async function () {
|
||||
const newUser = {
|
||||
gLdapUsers.push({
|
||||
username: 'autologinuser2',
|
||||
displayName: 'Auto Login2',
|
||||
email: 'auto2@login.com',
|
||||
password: LDAP_SHARED_PASSWORD
|
||||
};
|
||||
|
||||
gLdapUsers.push(newUser);
|
||||
|
||||
await users.add(newUser.email, newUser, auditSource);
|
||||
});
|
||||
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/cloudron/login`)
|
||||
.send({ username: 'autologinuser2', password: LDAP_SHARED_PASSWORD })
|
||||
|
||||
Reference in New Issue
Block a user