From 21ec1fd8504eb9c50d09be67be396707c1be411e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 17 May 2016 00:01:41 +0300 Subject: esp8266/scripts/webrepl_setup: Show password placeholder char. That was the intent for the initial user setup, but didn't work before due to lwIP issues. Enable now that they're fixed. --- esp8266/scripts/webrepl_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'esp8266/scripts/webrepl_setup.py') diff --git a/esp8266/scripts/webrepl_setup.py b/esp8266/scripts/webrepl_setup.py index 7c4068750c..ef639da0a6 100644 --- a/esp8266/scripts/webrepl_setup.py +++ b/esp8266/scripts/webrepl_setup.py @@ -26,7 +26,7 @@ def getpass(stream, prompt): stream.write("\r\n") return passwd passwd += c -# stream.write("*") + stream.write("*") def handle_conn(listen_sock): cl, remote_addr = listen_sock.accept() -- cgit v1.2.3 From 418faae8f7e1052e3a198ef7e69dff55deb7d141 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 17 May 2016 01:12:21 +0300 Subject: esp8266/scripts/webrepl_setup: Add max password length check. modwebrepl truncates password to 9 chars, and that led people to confusion. --- esp8266/scripts/webrepl_setup.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'esp8266/scripts/webrepl_setup.py') diff --git a/esp8266/scripts/webrepl_setup.py b/esp8266/scripts/webrepl_setup.py index ef639da0a6..d0bf8465d5 100644 --- a/esp8266/scripts/webrepl_setup.py +++ b/esp8266/scripts/webrepl_setup.py @@ -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 -- cgit v1.2.3