/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.outputlock.acquire()
|
||||
try:
|
||||
return getpass("%s: Enter password for %s on %s: " %
|
||||
(accountname, config.get(accountname, "remoteuser"),
|
||||
config.get(accountname, "remotehost")))
|
||||
return getpass("%s: Enter password: " % accountname)
|
||||
finally:
|
||||
s.outputlock.release()
|
||||
|
||||
|
@ -38,9 +38,7 @@ class PasswordDialog:
|
||||
text = ''
|
||||
if errmsg:
|
||||
text = '%s: %s\n' % (accountname, errmsg)
|
||||
text += "%s: Enter password for %s on %s: " % \
|
||||
(accountname, config.get(accountname, "remoteuser"),
|
||||
config.get(accountname, "remotehost"))
|
||||
text += "%s: Enter password: " % accountname
|
||||
self.label = Label(self.top, text = text)
|
||||
self.label.pack()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user