Multi user in node-red dashboard

Hai, I have created a multi-user dashboard in node-red but the problem is if I log in on to the node-red dashboard in pc it works but if I try to use my mobile to login with other usernames
the dashboard in the pc also changed to the respective dashboard that linked to the username that I used in the mobile.

so help me to create multiple separate users

[{"id":"594fc25f.7c755c","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"f31cc003.49c5f","type":"function","z":"594fc25f.7c755c","name":"Account Verification","func":"var accounts =  flow.get(\"accounts\") || [ { username : \"admin\", password : \"admin\"},{ username : \"guest\", password : \"guest\"}] ; \n\nvar Username = msg.payload.username ;\nvar Password = msg.payload.password ; \n\nmsg.topic=\"SELECT * FROM users WHERE username = '\"+Username+\"' AND password = '\"+Password+\"'\"; \n\n\n\nreturn msg;","outputs":1,"noerr":0,"x":370,"y":80,"wires":[["36d8792b.98df26"]]},{"id":"36d8792b.98df26","type":"mysql","z":"594fc25f.7c755c","mydb":"b520130e.66226","name":"","x":540,"y":80,"wires":[["143d5759.146749"]]},{"id":"143d5759.146749","type":"function","z":"594fc25f.7c755c","name":"num function","func":"var newmsg=msg.payload;\n\nvar num=newmsg[0];\nvar msgpayload;\ntry {\n    for (let value of Object.values(num)) {\n    msgpayload = {payload:value};\n        \n    }\n}\ncatch(err) {\n    msgpayload = {payload:0};\n    \n  }\n\nreturn msgpayload;","outputs":1,"noerr":0,"x":430,"y":160,"wires":[["a38d3b76.d1c748"]]},{"id":"a38d3b76.d1c748","type":"switch","z":"594fc25f.7c755c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"}],"checkall":"true","repair":false,"outputs":4,"x":330,"y":320,"wires":[["ad8ffd68.e6894","95bbfdc9.eb731"],["9b7dbf10.e1f5f","95bbfdc9.eb731"],["179fa4df.47d57b","95bbfdc9.eb731"],["e6d5c4d4.885d08","95bbfdc9.eb731"]]},{"id":"ad8ffd68.e6894","type":"function","z":"594fc25f.7c755c","name":"= 0 : Unknown User","func":"msg.payload = \"check your username and password \"\nreturn msg;","outputs":1,"noerr":0,"x":570,"y":280,"wires":[["c35d9d22.3203a"]]},{"id":"9b7dbf10.e1f5f","type":"function","z":"594fc25f.7c755c","name":"= 1 : worker","func":"msg.payload = { group: {\n    show : [\"admin_worker\"],\n    hide : [\"admin_signin\",\"admin_admin\",\"admin_manager\"]\n\n    }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":550,"y":320,"wires":[["385d9e74.286f82"]]},{"id":"179fa4df.47d57b","type":"function","z":"594fc25f.7c755c","name":"= 2 : manager","func":"msg.payload = { group: {\n    show : [\"admin_manager\"],\n    hide : [\"admin_signin\",\"admin_admin\",\"admin_worker\"]\n    }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":560,"y":360,"wires":[["385d9e74.286f82"]]},{"id":"e6d5c4d4.885d08","type":"function","z":"594fc25f.7c755c","name":"= 3 : admin ","func":"msg.payload = { group: {\n    show : [\"admin_admin\"],\n    hide : [\"admin_signin\",\"admin_worker\",\"admin_manager\"]\n    }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":552,"y":398,"wires":[["385d9e74.286f82"]]},{"id":"51c603d5.2faaac","type":"function","z":"594fc25f.7c755c","name":"","func":"msg.payload = { group: {\n    show : [\"admin_signin\"],\n    hide : [\"admin_worker\",\"admin_admin\",\"admin_manager\"]\n\n    }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":910,"y":500,"wires":[["43b2f076.654eb"]]},{"id":"4929579b.71df18","type":"mui_form","z":"594fc25f.7c755c","name":"Dashboard Sign-In","label":"","group":"bbefa631.a0ef38","order":0,"width":0,"height":0,"options":[{"label":"username","value":"username","type":"text","required":true,"rows":null},{"label":"password","value":"password","type":"password","required":true,"rows":null}],"formValue":{"username":"","password":""},"payload":"","submit":"submit","cancel":"cancel","topic":"","x":110,"y":80,"wires":[["f31cc003.49c5f"]]},{"id":"c35d9d22.3203a","type":"mui_toast","z":"594fc25f.7c755c","position":"dialog","displayTime":"3","highlight":"","sendall":true,"outputs":1,"ok":"OK","cancel":"","raw":false,"topic":"Authentication Failed","name":"Authentication Failure Dialog","x":840,"y":280,"wires":[[]]},{"id":"f9b6ba1a.fb73a8","type":"mui_text","z":"594fc25f.7c755c","group":"5533602.28ed0a","order":1,"width":0,"height":0,"name":"","label":"worker","format":"{{msg.payload}}","layout":"row-spread","x":470,"y":500,"wires":[]},{"id":"4ea10bd4.5c21a4","type":"mui_text","z":"594fc25f.7c755c","group":"5b1a1d46.90a634","order":2,"width":0,"height":0,"name":"","label":"manager","format":"{{msg.payload}}","layout":"row-spread","x":480,"y":560,"wires":[]},{"id":"37f0eb02.9611b4","type":"mui_text","z":"594fc25f.7c755c","group":"fd1a2290.d557","order":3,"width":0,"height":0,"name":"","label":"admin","format":"{{msg.payload}}","layout":"row-spread","x":470,"y":620,"wires":[]},{"id":"f486e24f.d6877","type":"mui_button","z":"594fc25f.7c755c","name":"","group":"5533602.28ed0a","order":1,"width":0,"height":0,"passthru":false,"label":"logout","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":750,"y":500,"wires":[["51c603d5.2faaac"]]},{"id":"d0168c8d.f33b7","type":"mui_button","z":"594fc25f.7c755c","name":"","group":"5b1a1d46.90a634","order":1,"width":0,"height":0,"passthru":false,"label":"logout","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":750,"y":560,"wires":[["1f2fc74d.5dba39"]]},{"id":"6219ac8d.b186b4","type":"mui_button","z":"594fc25f.7c755c","name":"","group":"fd1a2290.d557","order":1,"width":0,"height":0,"passthru":false,"label":"logout","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":750,"y":640,"wires":[["66498b46.338f44"]]},{"id":"1f2fc74d.5dba39","type":"function","z":"594fc25f.7c755c","name":"","func":"msg.payload = { group: {\n    show : [\"admin_signin\"],\n    hide : [\"admin_worker\",\"admin_admin\",\"admin_manager\"]\n\n    }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":910,"y":560,"wires":[["43b2f076.654eb"]]},{"id":"66498b46.338f44","type":"function","z":"594fc25f.7c755c","name":"","func":"msg.payload = { group: {\n    show : [\"admin_signin\"],\n    hide : [\"admin_worker\",\"admin_admin\",\"admin_manager\"]\n\n    }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":910,"y":640,"wires":[["43b2f076.654eb"]]},{"id":"43b2f076.654eb","type":"mui_ui_control","z":"594fc25f.7c755c","name":"","events":"all","x":1100,"y":540,"wires":[[]]},{"id":"95bbfdc9.eb731","type":"function","z":"594fc25f.7c755c","name":"","func":"var currentsocketid = flow.get(\"clientid\") || undefined;\ncurrentsocketid=msg.payload.currentsocketid;\nreturn msg;","outputs":1,"noerr":0,"x":530,"y":220,"wires":[["a555860a.035998"]]},{"id":"a555860a.035998","type":"debug","z":"594fc25f.7c755c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":730,"y":220,"wires":[]},{"id":"c92cd7c0.6f3a08","type":"debug","z":"594fc25f.7c755c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":980,"y":420,"wires":[]},{"id":"385d9e74.286f82","type":"mui_ui_control","z":"594fc25f.7c755c","name":"common","events":"all","x":760,"y":380,"wires":[["c92cd7c0.6f3a08"]]},{"id":"b520130e.66226","type":"MySQLdatabase","z":"","host":"127.0.0.1","port":"3306","db":"website","tz":""},{"id":"bbefa631.a0ef38","type":"mui_group","z":"","name":"signin","tab":"e87d8ece.8e2c1","disp":false,"width":"6","collapse":false},{"id":"5533602.28ed0a","type":"mui_group","z":"","name":"worker","tab":"e87d8ece.8e2c1","disp":true,"width":"6","collapse":false},{"id":"5b1a1d46.90a634","type":"mui_group","z":"","name":"manager","tab":"e87d8ece.8e2c1","disp":true,"width":"6","collapse":false},{"id":"fd1a2290.d557","type":"mui_group","z":"","name":"admin","tab":"e87d8ece.8e2c1","disp":true,"width":"6","collapse":false},{"id":"e87d8ece.8e2c1","type":"mui_tab","z":"","name":"admin","icon":"admin","disabled":false,"hidden":false}]

We can't help you.
Read about dashboard multi-user

Is multi user is possible with mdashboard

for more details please click the link below

Mdashboard

Is there any third party free drag and drop dashboard builder that can be integrated with node red (or) Is there any other ways to create a multi user dashboard with third party builders ?

i also seen the node red ui builder node but it seems difficult understand if anyone knows it please help to under stand it in a easy manner.

thank you.

uibuilder is much harder to describe than to use.

To use it, you need to be able to build the interface you want using HTML and JavaScript and CSS. Actually not that hard in most cases. Try the "simple" example to get the basics.

uibuilder comes with VueJS and bootstrap-vue baked in which will give most people a massive leg-up to getting started because you can use the frameworks in a very simple way to give you a reasonable looking interface with little to no messing with CSS and minimal HTML. On the JavaScript side, the default template gives you a usable outline to work from.

Try the examples and work through a couple of simple VueJS tutorials and you will soon get a feel for things. Then build up your ui one piece at a time, take it slow and steady.

Of course, if you know a different front-end framework (REACT, Angular, Moon, jQuery, ...) - you can use any of them instead. Or even go real basic and just use the uibuilder code on its own.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.