Merge branch 'new-backend' of github.com:Budibase/budibase into new-backend
This commit is contained in:
commit
4c5e5f9716
|
@ -23,7 +23,7 @@
|
||||||
isallowed: index.allowedRecordNodeIds.some(id => node.nodeId === id),
|
isallowed: index.allowedRecordNodeIds.some(id => node.nodeId === id),
|
||||||
})),
|
})),
|
||||||
filter(hierarchyFunctions.isRecord),
|
filter(hierarchyFunctions.isRecord),
|
||||||
filter(hierarchyFunctions.isDecendant(index.parent())),
|
filter(hierarchyFunctions.isDecendant($store.currentNode.parent())),
|
||||||
hierarchyFunctions.getFlattenedHierarchy
|
hierarchyFunctions.getFlattenedHierarchy
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import api from "../../builderStore/api"
|
import api from "../../builderStore/api"
|
||||||
import { getNewRecord, getNewInstance } from "../../common/core"
|
import { getNewRecord, getNewInstance } from "../../common/core"
|
||||||
|
|
||||||
export async function createUser(user, { appname, instanceId }) {
|
export async function createUser(password, user, { appname, instanceId }) {
|
||||||
const CREATE_USER_URL = `/_builder/instance/${appname}/${instanceId}/api/createUser`
|
const CREATE_USER_URL = `/_builder/instance/${appname}/${instanceId}/api/createUser`
|
||||||
const response = await api.post(CREATE_USER_URL, user)
|
const response = await api.post(CREATE_USER_URL, { user, password })
|
||||||
return await response.json()
|
return await response.json()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,11 +18,12 @@
|
||||||
|
|
||||||
async function createUser() {
|
async function createUser() {
|
||||||
const response = await api.createUser(
|
const response = await api.createUser(
|
||||||
|
password,
|
||||||
{
|
{
|
||||||
username,
|
username,
|
||||||
password,
|
|
||||||
accessLevels,
|
accessLevels,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
temporaryAccessId: ""
|
||||||
},
|
},
|
||||||
currentAppInfo
|
currentAppInfo
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue