|
@@ -39,16 +39,16 @@ class PwmanCliMac(PwmanCli):
|
|
|
if len(ids) > 1:
|
|
|
print("Can only 1 password at a time...")
|
|
|
return None
|
|
|
- try:
|
|
|
- node = self._db.getnodes(ids)
|
|
|
- ce = CryptoEngine.get()
|
|
|
+
|
|
|
+ nodes = self._db.getnodes(ids)
|
|
|
+ ce = CryptoEngine.get()
|
|
|
+
|
|
|
+ for node in nodes:
|
|
|
password = ce.decrypt(node[2])
|
|
|
tools.text_to_clipboards(password)
|
|
|
print("erasing in 10 sec...")
|
|
|
time.sleep(10) # TODO: this should be configurable!
|
|
|
tools.text_to_clipboards("")
|
|
|
- except Exception as e:
|
|
|
- self.error(e)
|
|
|
|
|
|
def do_cp(self, args):
|
|
|
self.do_copy(args)
|