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:
parent
1e024de7be
commit
418faae8f7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user