We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1457db commit 1b7d6a7Copy full SHA for 1b7d6a7
ports/esp8266/modules/webrepl_setup.py
@@ -17,12 +17,9 @@ def getpass(prompt):
17
18
def input_pass():
19
while 1:
20
- passwd1 = getpass("New password: ")
21
- if len(passwd1) < 4:
22
- print("Password too short")
23
- continue
24
- elif len(passwd1) > 9:
25
- print("Password too long")
+ passwd1 = getpass("New password (4-9 chars): ")
+ if len(passwd1) < 4 or len(passwd1) > 9:
+ print("Invalid password length")
26
continue
27
passwd2 = getpass("Confirm password: ")
28
if passwd1 == passwd2:
0 commit comments