diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-02 18:48:32 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-02 18:48:32 +0300 |
| commit | 13d9d50fea53550fdcc7f2bec86ff83b1ff9dc28 (patch) | |
| tree | 940d2178ede39d37b264c539aebc27d363283e5a /esp8266/scripts/webrepl_setup.py | |
| parent | bd9de5ec9020384334b63582c7640372a9a2d022 (diff) | |
esp8266/scripts/webrepl_setup: Reject too short passwords.
Diffstat (limited to 'esp8266/scripts/webrepl_setup.py')
| -rw-r--r-- | esp8266/scripts/webrepl_setup.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/esp8266/scripts/webrepl_setup.py b/esp8266/scripts/webrepl_setup.py index b912a4aa6..7c4068750 100644 --- a/esp8266/scripts/webrepl_setup.py +++ b/esp8266/scripts/webrepl_setup.py @@ -57,6 +57,9 @@ some boards, you may need to press reset button or reconnect power.\r while 1: passwd1 = getpass(ws, "New password: ") + if len(passwd1) < 4: + ws.write("Password too short\r\n") + continue passwd2 = getpass(ws, "Confirm password: ") if passwd1 == passwd2: break |
