This commit is contained in:
Alexander Clouter 2017-05-10 08:23:18 +00:00 committed by GitHub
commit ee306350c7
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class IMAPServer(object):
challenge = response.strip()
self.ui.debug('imap', '__md5handler: got challenge %s'% challenge)
passwd = self.__getpassword()
passwd = self.__getpassword().encode('ascii')
retval = self.username + ' ' + hmac.new(passwd, challenge).hexdigest()
self.ui.debug('imap', '__md5handler: returning %s'% retval)
return retval