1
0
Fork 0
mirror of synced 2024-06-30 20:10:54 +12:00

fixing tests - not using new auth endpoint

This commit is contained in:
Michael Shanks 2020-06-12 21:08:00 +01:00
parent 42166e01a5
commit f956e141b4

View file

@ -177,7 +177,8 @@ const createUserWithPermissions = async (
const designDoc = await db.get("_design/database")
const loginResult = await request
.post(`/${designDoc.metadata.applicationId}/api/authenticate`)
.post(`/api/authenticate`)
.set({ Cookie: `budibase:appid=${designDoc.metadata.applicationId}`})
.send({ username, password })
// returning necessary request headers