aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-11-24 07:32:26 +0000
committerAdam Soltys <[email protected]>2023-11-24 07:32:29 +0000
commit04a941b76b916384a3215502d362f4f3b51074a5 (patch)
treedebe5852ca52c24cb06cffadf62415d5b9f900b0
parent2ad10ee70ca62a60563afa2d6e4a6943581ecf99 (diff)
downloadcoinos-server-04a941b76b916384a3215502d362f4f3b51074a5.tar.gz
coinos-server-04a941b76b916384a3215502d362f4f3b51074a5.zip
fix mqtt config
-rw-r--r--routes/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js
index 3270e2a9..67428abc 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -502,7 +502,7 @@ export default {
},
async superuser({ body: { username } }, res) {
- if (username === config.mqtt.username) res.send({ ok: true });
+ if (username === config.mqtt2.username) res.send({ ok: true });
else bail(res, "unauthorized");
},
};