summaryrefslogtreecommitdiffstats
path: root/server/api/backendtypes.js
diff options
context:
space:
mode:
authorJannik Schönartz2019-03-10 17:42:59 +0100
committerJannik Schönartz2019-03-10 17:42:59 +0100
commit111555c32100b589caef08fb5a6a441a45f15dbf (patch)
tree8ac43b99b91a7408a929bf751b237d37e25b3d6e /server/api/backendtypes.js
parent[documentation] Add documentation site (diff)
downloadbas-111555c32100b589caef08fb5a6a441a45f15dbf.tar.gz
bas-111555c32100b589caef08fb5a6a441a45f15dbf.tar.xz
bas-111555c32100b589caef08fb5a6a441a45f15dbf.zip
[external-backends] Passwords are not send to the frontend anymore
Change error responses to the new response scheme Add set password button in the frontend to deal with the no password policy
Diffstat (limited to 'server/api/backendtypes.js')
-rw-r--r--server/api/backendtypes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/api/backendtypes.js b/server/api/backendtypes.js
index 8e2665e..ef371d8 100644
--- a/server/api/backendtypes.js
+++ b/server/api/backendtypes.js
@@ -30,7 +30,7 @@ router.get('/:type', (req, res) => {
const b = new ExternalBackends()
const instance = b.getInstance(backendType)
if (instance === null) {
- res.status(500).send({ auth: false, status: 'TYPE_INVALID', error_message: 'The provided backend type is invalid.' })
+ res.status(500).send({ error: 'TYPE_INVALID', message: 'The provided backend type is invalid.' })
}
res.status(200).send(instance.getCredentials())
})