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

Does not connect to open wifi #22

Open
thecolorblue opened this issue Nov 18, 2018 · 3 comments
Open

Does not connect to open wifi #22

thecolorblue opened this issue Nov 18, 2018 · 3 comments

Comments

@thecolorblue
Copy link

There is no place in the flask site to indicate the AP is open. It will accept any password but will not connect to the AP.

I am assuming this would require:

  • update the template to add a check box for open access points
  • update the wpa supplicant template to add a "wpa_psk NONE" (I think this is the command for open wifi in supplicant, I will have to double check)

Anything I missed? I can take a shot at this if that these are the only changes needed.

@ilirb
Copy link
Contributor

ilirb commented Dec 6, 2018

If it returns Wrong password! when you reconnect to the AP then the issue is here: https://github.com/schollz/raspberry-pi-turnkey/blob/master/startup.py#L154 where check_cred() should not run if password is empty

@bust4rhymes
Copy link

bust4rhymes commented Dec 29, 2022

i'm having the exact issue when using an open network. The web form wont let me pass without a password saying "Please fill this field" and i cannot continue.
After looking at the code this seems to be managed for this case:

pwd = 'psk="' + password + '"'
    if password == "":
        pwd = "key_mgmt=NONE" # If open AP

key_mgmt=NON is what should be used in wpa_suppliquant.conf in order to use an "open ap".
I just dont see why the form wont le me pass without password.

*Edit:
From index.html i tried removing the "required" from the password input id just to check if i can make past the login form.
It goes trought but i end up with a "internal server error".

    <input id="inputPassword" autocorrect="off" autocapitalize="none" pattern=".{0}|.{8,}" name="password" class="form-control" placeholder="SSID Password" **required**>
    <label for="inputPassword">Password</label>
  </div>

@houshmandX
Copy link

houshmandX commented Mar 3, 2023

index.html need to be:

<input id="inputPassword" autocorrect="off" autocapitalize="none" pattern=".{0}|.{8,}" name="password" class="form-control" placeholder="SSID Password">
<label for="inputPassword">Password</label>

AND in the startup.py as mentioned in line 154:

if password == "": pwd = "key_mgmt=NONE" # If open AP valid_psk = True else: valid_psk = check_cred(ssid, password)

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

No branches or pull requests

4 participants