summaryrefslogtreecommitdiffstats
path: root/server/api
diff options
context:
space:
mode:
authorJannik Schönartz2021-03-23 22:10:59 +0100
committerJannik Schönartz2021-03-23 22:10:59 +0100
commit639f2769730fed6ee0efac10f15b65086a26f8fa (patch)
treebe4dbf5e81e4122c6e6a034b711044f2d996ea7b /server/api
parent[server/registration] Show error msg and name input when infoblox has a fixed... (diff)
downloadbas-639f2769730fed6ee0efac10f15b65086a26f8fa.tar.gz
bas-639f2769730fed6ee0efac10f15b65086a26f8fa.tar.xz
bas-639f2769730fed6ee0efac10f15b65086a26f8fa.zip
[server/registration] Small bugfixes
Diffstat (limited to 'server/api')
-rw-r--r--server/api/registration.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/api/registration.js b/server/api/registration.js
index 09513c6..a556bbe 100644
--- a/server/api/registration.js
+++ b/server/api/registration.js
@@ -286,7 +286,7 @@ noAuthRouter.postAsync('/clients', async (req, res) => {
else if (!ipxe && ipCheck.leased && !ipCheck.error) return res.send({ client: client, ipList: ipCheck.nextIps })
// Set the hostname as clientname if it exists and is not a leased ip.
- if (!ipCheck.leased && ipCheck.name !== '') {
+ if (!ipCheck.leased && ipCheck.name) {
if (ipCheck.name) client.name = ipCheck.name
if (ipCheck.id) dhcp.ref = ipCheck.id
} else {