Skip to content

Commit

Permalink
FIX Allow the user to set an empty password in order to make an open AP
Browse files Browse the repository at this point in the history
  • Loading branch information
N0vaPixel committed Mar 6, 2017
1 parent 6d13eba commit 7a0d367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp8266_deauther/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void Settings::load(){
ssidLen = EEPROM.read(ssidLenAdr);
passwordLen = EEPROM.read(passwordLenAdr);

if(ssidLen < 1 || ssidLen > 32 || passwordLen < 8 || passwordLen > 32) reset();
if(ssidLen < 1 || ssidLen > 32 || passwordLen < 8 && passwordLen != 0 || passwordLen > 32) reset();
else{
ssid = "";
password = "";
Expand Down

0 comments on commit 7a0d367

Please sign in to comment.