Skip to content
Snippets Groups Projects
Commit 418faae8 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/scripts/webrepl_setup: Add max password length check.

modwebrepl truncates password to 9 chars, and that led people to confusion.
parent 1e024de7
Branches
No related tags found
No related merge requests found
...@@ -60,6 +60,9 @@ some boards, you may need to press reset button or reconnect power.\r ...@@ -60,6 +60,9 @@ some boards, you may need to press reset button or reconnect power.\r
if len(passwd1) < 4: if len(passwd1) < 4:
ws.write("Password too short\r\n") ws.write("Password too short\r\n")
continue continue
elif len(passwd1) > 9:
ws.write("Password too long\r\n")
continue
passwd2 = getpass(ws, "Confirm password: ") passwd2 = getpass(ws, "Confirm password: ")
if passwd1 == passwd2: if passwd1 == passwd2:
break break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment