mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user