/offlineimap/head: changeset 443

Fixed account names in password prompts
This commit is contained in:
jgoerzen 2003-04-18 03:43:54 +01:00
parent faf26007b1
commit b9f2eca42c
2 changed files with 2 additions and 6 deletions

View File

@ -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()

View File

@ -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()