summaryrefslogtreecommitdiffstats
path: root/server/api/ipxe.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/ipxe.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/ipxe.js')
-rw-r--r--server/api/ipxe.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/server/api/ipxe.js b/server/api/ipxe.js
index 79b3b7f..2e89e32 100644
--- a/server/api/ipxe.js
+++ b/server/api/ipxe.js
@@ -35,11 +35,10 @@ router.get('/:version/log', async (req, res) => {
fs.readFile(filepath, 'utf-8', function (err, content) {
if (err) res.end()
if (max !== -1 && content) {
- let c = content.split('\n')
- c = c.splice(-max)
- res.send(c.join('\n'))
- }
- else res.send(content)
+ let c = content.split('\n')
+ c = c.splice(-max)
+ res.send(c.join('\n'))
+ } else res.send(content)
})
})