updated to use key params for admin parts
This commit is contained in:
parent
b0a8e6a751
commit
a6731ffdbc
@ -240,7 +240,9 @@ def prompt_password(pw_prompt):
|
||||
break
|
||||
if re.match(r"^(\s+)$", rc):
|
||||
LOG.warning("Whitespace not allowed as a password!")
|
||||
elif re.match(r"^(\s+)(\S+)(\s+)$", rc):
|
||||
elif re.match(r"^(\s+)(\S+)(\s+)$", rc) or \
|
||||
re.match(r"^(\S+)(\s+)$", rc) or \
|
||||
re.match(r"^(\s+)(\S+)$", rc):
|
||||
LOG.warning("Whitespace can not start or end a password!")
|
||||
else:
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user