diff --git a/src/sbbs3/js_mqtt.c b/src/sbbs3/js_mqtt.c
index fd0cea789540c53f83781984b323da19c2a4a16c..95a936283aacfff9515ef7703601ca9c3b919c68 100644
--- a/src/sbbs3/js_mqtt.c
+++ b/src/sbbs3/js_mqtt.c
@@ -168,6 +168,7 @@ static JSBool js_connect(JSContext* cx, uintN argc, jsval *arglist)
 		    && user_is_sysop(&user)) {
 			char hexpass[LEN_PASS * 2 + 1];
 
+			strlwr(user.pass);
 			for (size_t i = 0; user.pass[i]; i++) {
 				const char hd[] = "0123456789ABCDEF";
 				hexpass[i*2] = hd[(((uint8_t *)user.pass)[i] & 0xf0) >> 4];