chiark
/
gitweb
/
~mdw
/
catacomb-python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e988cbf
)
pwsafe: Get the master passphrase before the new password.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 24 May 2015 15:49:40 +0000
(16:49 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 28 May 2015 10:21:01 +0000
(11:21 +0100)
This saves lots of repeating the new password if the user is prone to
typing the master password wrongly. Like I am.
pwsafe
patch
|
blob
|
blame
|
history
diff --git
a/pwsafe
b/pwsafe
index 37ebffe7a0ddece8f63e92f1dad0678bf711cccd..8a51bd7243bdc51b12ff1ac28b7c3a190721fcf2 100644
(file)
--- a/
pwsafe
+++ b/
pwsafe
@@
-102,6
+102,7
@@
def cmd_store(av):
if len(av) < 1 or len(av) > 2:
return 1
tag = av[0]
+ pw = PW(file, writep = True)
if len(av) < 2:
pp = C.getpass("Enter passphrase `%s': " % tag)
vpp = C.getpass("Confirm passphrase `%s': " % tag)
@@
-110,7
+111,6
@@
def cmd_store(av):
pp = stdin.readline()
else:
pp = av[1]
- pw = PW(file, writep = True)
pw[av[0]] = chomp(pp)
def cmd_copy(av):