Fix empty password (#3531)
This commit is contained in:
parent
3da78fcb49
commit
e6a9105df4
|
|
@ -33,8 +33,9 @@ def get_password(
|
||||||
hide_input=True,
|
hide_input=True,
|
||||||
).input()
|
).input()
|
||||||
|
|
||||||
if allow_skip and not result.has_item():
|
if allow_skip:
|
||||||
return None
|
if not result.has_item() or not result.text():
|
||||||
|
return None
|
||||||
|
|
||||||
password = Password(plaintext=result.text())
|
password = Password(plaintext=result.text())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue