Qrome / Pi-hole-Monitor

ESP8266 and OLED Pi-hole Monitor
MIT License
78 stars 16 forks source link

Invalid access to Configuration #8

Closed PonyOny closed 4 years ago

PonyOny commented 4 years ago

I have modified the Settings.h to set my user & password in order to access the Configuration sections, but any value used here will not work, I commented the validation in piholemonitor in order to skip validation and I have observed that the user & password are populated automatically with User: password Password: password So it's not really updating the values, then i tried to access using the above credentials and it works, but if I change the credentials on the Configuration page to others it wont update anything using the specified ones.

I have also tried to dissable the acces setting it to false, and it still asks for user/password. boolean IS_BASIC_AUTH = false; // true = require athentication to change configuration settings / false = no auth

Qrome commented 4 years ago

Sorry, if it isn't clear, but after the initial load of the software -- changing the settings.h file will not update the user / password. It is ONLY managed in the Web Interface. This is also stated in the readme file. The other thing that causes issues is the automatic password saving as it sometimes may change the password field for you when you are on the Settings Page.
If you need to see what the current password is, you can use the Serial Monitor when it starts up to view it. You should be able use the Web Interface then to update it as well as turn off authentication if you need.

Qrome commented 4 years ago

https://github.com/Qrome/Pi-hole-Monitor#initial-configuration

PonyOny commented 4 years ago

Thanks, I figured out that, I had to delete the Spiff file that it creates "piholeconf.txt" and uploaded new code with the default settings and now everything is working fine.

Thanks

Qrome commented 4 years ago

Ok, cool! Glad you got that all working.