hagaygo / OpenWrtManager

Mobile app for interacting with your OpenWrt device.
GNU General Public License v3.0
145 stars 10 forks source link

Authentication Failed #8

Closed snax44 closed 3 years ago

snax44 commented 3 years ago

Hi,

Firstly thank for this app.

I tried to connect my app with my router but I have an "Authentication failed". Of course I checked and checked again my credentials and I tried them with my web browser from my phone.

My password length is about 30 chars. Could be a reason ?

Thanks for helping. Maël

hagaygo commented 3 years ago

What is the result using "Test" button on device setup page ?

If its says forbidden , it means it can connect but credentials are wrong (username is normally "root", make sure you set it up on identity page).

If you get other errors then you might need to toggle "Use https" and "Ignore certificate errors" according to your setup.

I don't think the password length is an issue , but to eliminate that as reason you can change the password temporary to lets say 8 chars long.

If you still cant get it to work , please provide screenshots (blur sensitive data) and network info , it might give more clues.

snax44 commented 3 years ago

The result was "Forbiden". As I said my tests on webpage was OK.

I made several quick test and the problem was the "&" char in my password. It might be a good idea to warn users of non-functional characters.

Regards.

hagaygo commented 3 years ago

& char might be problematic because of missing URL encoding , I'll check it out , thanks for sharing your findings.

hagaygo commented 3 years ago

Will be fixed in next release.