sanjeshpathak / Mosquitto-Dashboard

A real time dashboard for monitoring Mosquitto Broker (MQTT)
99 stars 22 forks source link

User Authentication error #6

Open malepurakesh opened 3 years ago

malepurakesh commented 3 years ago

Hi, First of all I didn't put the username and password for mosquitto broker. In log in prompt it is not getting logged in if I press login button. In another way, I have created the user name and password for mosquitto broker, and provided in dashboard.js file. Even After I couldn't able to log in to the dashboard. I am getting some thing shown below. login_prompt

kevin1594 commented 3 years ago

did you solve?

malepurakesh commented 3 years ago

No

BaranGursoy commented 3 years ago

Did you solve it?

opnine commented 2 years ago

Having the same issue.

Xxm-YX commented 1 year ago

You can press F12 to look at the console console, what is wrong with the report, the high probability is that it has not been connected through ws

bldrvnlw commented 1 year ago

Tip - if your mqtt accepts anonymous access (typical in intranet locally hosted situations) use the _dashboardanonymous.js instead of the dashboard.js script. You can either rename the anonymous script or edit MosquitoDashboard.html and change the line

<script src="./js/dashboard.js"></script>

to

<script src="./js/dashboard_anonymous.js"></script>

remember for this to work your mosquitto server must also have websockets enabled (as well as mqtt) so your mosquitto.conf should contain lines similar to

listener 1883
protocol mqtt

listener 8883
protocol websockets
DiaoWang commented 1 year ago

Tip - if your mqtt accepts anonymous access (typical in intranet locally hosted situations) use the _dashboardanonymous.js instead of the dashboard.js script. You can either rename the anonymous script or edit MosquitoDashboard.html and change the line

<script src="./js/dashboard.js"></script>

to

<script src="./js/dashboard_anonymous.js"></script>

remember for this to work your mosquitto server must also have websockets enabled (as well as mqtt) so your mosquitto.conf should contain lines similar to

listener 1883
protocol mqtt

listener 8883
protocol websockets

It works! Thank you so much