Skip to content

Commit 418faae

Browse files
committed
esp8266/scripts/webrepl_setup: Add max password length check.
modwebrepl truncates password to 9 chars, and that led people to confusion.
1 parent 1e024de commit 418faae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

esp8266/scripts/webrepl_setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ def handle_conn(listen_sock):
6060
if len(passwd1) < 4:
6161
ws.write("Password too short\r\n")
6262
continue
63+
elif len(passwd1) > 9:
64+
ws.write("Password too long\r\n")
65+
continue
6366
passwd2 = getpass(ws, "Confirm password: ")
6467
if passwd1 == passwd2:
6568
break

0 commit comments

Comments
 (0)