Skip to content

Commit 13d9d50

Browse files
committed
esp8266/scripts/webrepl_setup: Reject too short passwords.
1 parent bd9de5e commit 13d9d50

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

esp8266/scripts/webrepl_setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def handle_conn(listen_sock):
5757

5858
while 1:
5959
passwd1 = getpass(ws, "New password: ")
60+
if len(passwd1) < 4:
61+
ws.write("Password too short\r\n")
62+
continue
6063
passwd2 = getpass(ws, "Confirm password: ")
6164
if passwd1 == passwd2:
6265
break

0 commit comments

Comments
 (0)