move various login routes under auth/

This commit is contained in:
Girish Ramakrishnan
2023-08-10 16:21:22 +05:30
parent 9ba6908764
commit 6c4aa605df
13 changed files with 162 additions and 149 deletions
+4 -4
View File
@@ -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);