Solved Adguard Password Change Issue
So I have followed the instructions for setting up the password on a new install and if fails everytime. The initial password works but everytime I change it I get the following: Error: control/login | invalid username or password | 400
I run the command I copy with encrypted password and paste it into the yaml file. I have tried with and without quotes. I restart the app and up pops that error.
So any tips would be appreciated.
@atridad Thanks that worked!
Would you know why the instructions about using htpasswd didnt?
Your help was much appreciated!
@michaelf I tried the instructions again and they do seem to work.
root@e473a918-365d-4989-afb4-7358cdcc8768:/app/code# htpasswd -nbB admin newpass admin:$2y$05$On66DNnwebuYBJufvoKBF.7lD00Qlq9wtkbncXvbJiaFo3.wirBJ2
I then pasted the above in the config file. I can then login with 'newpass' as the password. Just to double check, did you strip out the 'admin:' prefix in the output above before putting it into the yaml?
users: - name: admin password: $2y$05$On66DNnwebuYBJufvoKBF.7lD00Qlq9wtkbncXvbJiaFo3.wirBJ2
@girish Using the Cloudron instructions for htpasswd did not work for me on several tries and yes I did not copy over admin.
Using the tool that @atridad provided did work though so with that I was able to change the password.
@girish The guide in the docs works unless you have certain special characters in the password. For example, for me it broke on an exclamation mark.
@atridad Oh, maybe that's what I was missing. Let me check. I don't like people putting in their password in external sites!
I updated the docs to quote the password - https://docs.cloudron.io/apps/adguard-home/#change-password
@girish I know I seen it somewhere about the quotes and I did try it but it also did not work.
Maybe I missed something but will keep that in mind.