This commit is contained in:
Chuck 2013-07-05 02:53:22 +07:00
parent 7434913727
commit a94f71a240
2 changed files with 2 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class bitmessagePOP3Connection(asyncore.dispatcher):
username = '{}@{}'.format(getBase58Capitaliation(self.address), self.address) username = '{}@{}'.format(getBase58Capitaliation(self.address), self.address)
# Must login with the full E-mail address # Must login with the full E-mail address and capitalization
if data != username: if data != username:
yield "-ERR access denied" yield "-ERR access denied"
return return

View File

@ -160,6 +160,7 @@ class bitmessageSMTPChannel(asynchat.async_chat):
self.fullUsername = '{}@{}'.format(getBase58Capitaliation(self.address), address) self.fullUsername = '{}@{}'.format(getBase58Capitaliation(self.address), address)
# Must match full email address with capitalization
if username != self.fullUsername: if username != self.fullUsername:
self.push('530 Access denied.') self.push('530 Access denied.')
self.close_when_done() self.close_when_done()