/offlineimap/head: changeset 443
Fixed account names in password prompts
This commit is contained in:
parent
faf26007b1
commit
b9f2eca42c
@ -46,9 +46,7 @@ class TTYUI(UIBase):
|
|||||||
s._msg("%s: %s" % (accountname, errmsg))
|
s._msg("%s: %s" % (accountname, errmsg))
|
||||||
s.outputlock.acquire()
|
s.outputlock.acquire()
|
||||||
try:
|
try:
|
||||||
return getpass("%s: Enter password for %s on %s: " %
|
return getpass("%s: Enter password: " % accountname)
|
||||||
(accountname, config.get(accountname, "remoteuser"),
|
|
||||||
config.get(accountname, "remotehost")))
|
|
||||||
finally:
|
finally:
|
||||||
s.outputlock.release()
|
s.outputlock.release()
|
||||||
|
|
||||||
|
@ -38,9 +38,7 @@ class PasswordDialog:
|
|||||||
text = ''
|
text = ''
|
||||||
if errmsg:
|
if errmsg:
|
||||||
text = '%s: %s\n' % (accountname, errmsg)
|
text = '%s: %s\n' % (accountname, errmsg)
|
||||||
text += "%s: Enter password for %s on %s: " % \
|
text += "%s: Enter password: " % accountname
|
||||||
(accountname, config.get(accountname, "remoteuser"),
|
|
||||||
config.get(accountname, "remotehost"))
|
|
||||||
self.label = Label(self.top, text = text)
|
self.label = Label(self.top, text = text)
|
||||||
self.label.pack()
|
self.label.pack()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user