Merge pull request #54 from sudipm-mukherjee/curses

BUG: Right format for password from Curses
This commit is contained in:
Rodolfo García Peñas (kix) 2021-05-09 11:23:24 +02:00 committed by GitHub
commit edef557bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -215,8 +215,8 @@ class IMAPServer:
authz = self.user_identity authz = self.user_identity
retval = NULL.join((authz, authc, passwd)) retval = NULL.join((authz, authc, passwd))
logsafe_retval = NULL.join((authz, authc, '(passwd hidden for log)')) self.ui.debug('imap', '__plainhandler: returning %s %s '
self.ui.debug('imap', '__plainhandler: returning %s' % logsafe_retval) '(passwd hidden for log)' % (authz, authc))
return retval return retval
def __xoauth2handler(self, response): def __xoauth2handler(self, response):

View File

@ -583,6 +583,10 @@ class Blinkenlights(UIBase, CursesUtil):
finally: finally:
self.unlock() self.unlock()
self.inputhandler.input_release() self.inputhandler.input_release()
# We need a str password
if isinstance(password, bytes):
return password.decode(encoding='utf-8')
return password return password
def setupwindows(self, resize=False): def setupwindows(self, resize=False):