Merge pull request #54 from sudipm-mukherjee/curses
BUG: Right format for password from Curses
This commit is contained in:
commit
edef557bf3
@ -215,8 +215,8 @@ class IMAPServer:
|
||||
authz = self.user_identity
|
||||
|
||||
retval = NULL.join((authz, authc, passwd))
|
||||
logsafe_retval = NULL.join((authz, authc, '(passwd hidden for log)'))
|
||||
self.ui.debug('imap', '__plainhandler: returning %s' % logsafe_retval)
|
||||
self.ui.debug('imap', '__plainhandler: returning %s %s '
|
||||
'(passwd hidden for log)' % (authz, authc))
|
||||
return retval
|
||||
|
||||
def __xoauth2handler(self, response):
|
||||
|
@ -583,6 +583,10 @@ class Blinkenlights(UIBase, CursesUtil):
|
||||
finally:
|
||||
self.unlock()
|
||||
self.inputhandler.input_release()
|
||||
|
||||
# We need a str password
|
||||
if isinstance(password, bytes):
|
||||
return password.decode(encoding='utf-8')
|
||||
return password
|
||||
|
||||
def setupwindows(self, resize=False):
|
||||
|
Loading…
Reference in New Issue
Block a user