Logic Machine Forum
Authentication bug after changing settings using "uci" library - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Authentication bug after changing settings using "uci" library (/showthread.php?tid=4878)



Authentication bug after changing settings using "uci" library - rbourgeon - 18.07.2023

Hello, 

I activated authentication to access Apps screen and User folder using the 3 following lines of code in Lua :

Code:
uci.set('genohm-scada', 'core', 'appsauth', 1)
uci.set('genohm-scada', 'core', 'userauth', 1)
uci.commit('genohm-scada')

The problem is that, after running these 3 lines of code, I can't login again to my LogicMachine, either by using the current password, either by using the default password.

The only fix is to physically turn off the LM and then turning it on again.
Is there any fix?


RE: Authentication bug after changing settings using "uci" library - admin - 19.07.2023

What exactly are you trying to achieve? There's no guarantee that something will work correctly if you change system parameters in a non-standard way.


RE: Authentication bug after changing settings using "uci" library - rbourgeon - 19.07.2023

I thought that using uci was the cleanest way to do that. The goal is to automate some changes of settings so that people in my team won't forget to change them.