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

esp8266/scripts/webrepl_setup: Reject too short passwords.

parent bd9de5ec
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,9 @@ some boards, you may need to press reset button or reconnect power.\r ...@@ -57,6 +57,9 @@ some boards, you may need to press reset button or reconnect power.\r
while 1: while 1:
passwd1 = getpass(ws, "New password: ") passwd1 = getpass(ws, "New password: ")
if len(passwd1) < 4:
ws.write("Password too short\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