Skip to content

Commit 854d3b2

Browse files
authored
Merge pull request #248 from JAndrassy/esphost_fix_pwd_check
ESPHost - fix softAP password check
2 parents bb8937d + d27eff5 commit 854d3b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libraries/ESPhost/src/CCtrlWrapper.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,8 @@ class CCtrlMsgWrapper {
729729
cfg_ok = false;
730730
}
731731

732-
if((strlen((char *)&cfg.pwd) > MAX_PWD_LENGTH) ||
733-
((cfg.encryption_mode == WIFI_AUTH_OPEN) &&
732+
if((cfg.encryption_mode != WIFI_AUTH_OPEN) &&
733+
((strlen((char *)&cfg.pwd) > MAX_PWD_LENGTH) ||
734734
(strlen((char *)&cfg.pwd) < MIN_PWD_LENGTH)) ) {
735735
/* INVALID BASS*/
736736
Serial.println("[ERROR]: Invalid password");

0 commit comments

Comments
 (0)