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

WAN WiFi Client should allow zero length passphrase #421

Closed
ab7pa opened this issue Jun 30, 2022 · 0 comments · Fixed by #422
Closed

WAN WiFi Client should allow zero length passphrase #421

ab7pa opened this issue Jun 30, 2022 · 0 comments · Fixed by #422

Comments

@ab7pa
Copy link
Contributor

ab7pa commented Jun 30, 2022

The WAN WiFi Client section should also allow a zero-length passphrase. Legacy code had this test:
if( "$wifi3_enable" eq "1" and (length( $wifi3_key ) < 8 or length($wifi3_key) > 64) and ! length($wifi3_key) == 0)

So the new Lua code should allow a zero length passphrase too:
line 685: if #wifi3_key < 8 or #wifi3_key > 64 then
(the test should include #wifi3_key ~= 0 )

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 a pull request may close this issue.

1 participant