Please follow the below template, it will help us to help you!
Expected Behaviour:
After initial setup could login to admin web interface. Then did sudo -a -p to reset admin password from default. Should be able to login using new password.
Actual Behaviour:
Cannot log into admin web interface, keep getting 'Wrong password!' error.
Result of sudo ls -lah /etc/pihole/setupVars.conf -rw-r--r-- 1 root root 298 Sep 15 04:52 /etc/pihole/setupVars.conf
Curiously I was prompted for password to run and had to use the default blackhole
But that password doesn't get into web admin either.
Running the second command shows there is some value for WEBPASSWORD in that file.
Resolved. Initially I was doing sudo pihole -a -p to set password. When doing that user is prompted to set new password but cannot see password. Just now I did sudo -a -p <password> I was setting a password that included hash # character but that was being set as pound symbol on the pi device. Once I saw that I set using a different character and can now get in. Pretty annoying though.