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

modwebrepl truncates password to 9 chars, and that led people to confusion.
This commit is contained in:
Paul Sokolovsky 2016-05-17 01:12:21 +03:00
parent 1e024de7be
commit 418faae8f7

View File

@ -60,6 +60,9 @@ some boards, you may need to press reset button or reconnect power.\r
if len(passwd1) < 4:
ws.write("Password too short\r\n")
continue
elif len(passwd1) > 9:
ws.write("Password too long\r\n")
continue
passwd2 = getpass(ws, "Confirm password: ")
if passwd1 == passwd2:
break