Ensure pw val is empty before further usage
This commit is contained in:
parent
6479d69344
commit
18b4b983ca
@ -61,6 +61,7 @@ class KeyringProxy(object):
|
||||
pw_val = self.ring.get_password(name, PW_USER)
|
||||
if pw_val:
|
||||
return (True, pw_val)
|
||||
pw_val = ''
|
||||
if self.enable_prompt and prompt:
|
||||
pw_val = InputPassword().get_password(name, prompt)
|
||||
if self.random_on_empty and len(pw_val) == 0:
|
||||
|
Loading…
Reference in New Issue
Block a user