Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only reconnect if WiFi updated #1555

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

presslab-us
Copy link

If only the parameters have been updated then don't try to reconnect on save. Otherwise _ssid and _pass are blank (because "placeholder" input attribute is used) and the connection will fail.

If only the parameters have been updated then don't try to reconnect on save.
Otherwise _ssid and _pass are blank (because "placeholder" input attribute is used) and the connection will fail.
@presslab-us
Copy link
Author

still a problem in the latest code

@tablatronix
Copy link
Collaborator

What browser? placeholders should not be submitted in inputs

@presslab-us
Copy link
Author

Yes, exactly, the placeholder is not submitted, and therefore WiFiManager uses the returned (blank) SSID and password to reconnect. This causes the connection to fail.

My patch makes it so that if the SSID and password are not changed it will not try to reconnect with blank _ssid and _pass.

Tested with Chromium 110.0.5481.177

@tablatronix
Copy link
Collaborator

If its blank then it shouldnt be connecting at all

@presslab-us
Copy link
Author

Is that the intended behavior? Every time that you go into the settings page you need to type in the ssid and password again, even if the placeholder is correct?

@tablatronix
Copy link
Collaborator

No, I will take a look, something else seems to be broken also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants