move various login routes under auth/
This commit is contained in:
@@ -483,7 +483,7 @@ describe('External LDAP', function () {
|
||||
email: 'auto0@login.com'
|
||||
});
|
||||
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/cloudron/login`)
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/auth/login`)
|
||||
.send({ username: 'autologinuser0', password: LDAP_SHARED_PASSWORD })
|
||||
.ok(() => true);
|
||||
|
||||
@@ -502,7 +502,7 @@ describe('External LDAP', function () {
|
||||
});
|
||||
|
||||
it('fails for unknown user', async function () {
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/cloudron/login`)
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/auth/login`)
|
||||
.send({ username: 'doesnotexist', password: LDAP_SHARED_PASSWORD })
|
||||
.ok(() => true);
|
||||
|
||||
@@ -521,7 +521,7 @@ describe('External LDAP', function () {
|
||||
email: 'auto1@login.com'
|
||||
});
|
||||
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/cloudron/login`)
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/auth/login`)
|
||||
.send({ username: 'autologinuser1', password: 'wrongpassword' })
|
||||
.ok(() => true);
|
||||
|
||||
@@ -540,7 +540,7 @@ describe('External LDAP', function () {
|
||||
password: LDAP_SHARED_PASSWORD
|
||||
});
|
||||
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/cloudron/login`)
|
||||
const response = await superagent.post(`${serverUrl}/api/v1/auth/login`)
|
||||
.send({ username: 'autologinuser2', password: LDAP_SHARED_PASSWORD })
|
||||
.ok(() => true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user