Fixed bug when connecting to IMAP with default authenticator.
This commit is contained in:
parent
965aa0d083
commit
da6cd30611
@ -191,7 +191,7 @@ void IMAPConnection::connect()
|
||||
|
||||
void IMAPConnection::authenticate()
|
||||
{
|
||||
getAuthenticator()->setService(thisRef().dynamicCast <service>());
|
||||
getAuthenticator()->setService(m_store.toStrong());
|
||||
|
||||
#if VMIME_HAVE_SASL_SUPPORT
|
||||
// First, try SASL authentication
|
||||
|
@ -44,7 +44,7 @@ defaultAuthenticator::~defaultAuthenticator()
|
||||
|
||||
const string defaultAuthenticator::getUsername() const
|
||||
{
|
||||
const string& prefix = m_service->getInfos().getPropertyPrefix();
|
||||
const string prefix = m_service->getInfos().getPropertyPrefix();
|
||||
const propertySet& props = m_service->getSession()->getProperties();
|
||||
|
||||
if (props.hasProperty(prefix + net::serviceInfos::property::AUTH_USERNAME.getName()))
|
||||
@ -56,7 +56,7 @@ const string defaultAuthenticator::getUsername() const
|
||||
|
||||
const string defaultAuthenticator::getPassword() const
|
||||
{
|
||||
const string& prefix = m_service->getInfos().getPropertyPrefix();
|
||||
const string prefix = m_service->getInfos().getPropertyPrefix();
|
||||
const propertySet& props = m_service->getSession()->getProperties();
|
||||
|
||||
if (props.hasProperty(prefix + net::serviceInfos::property::AUTH_PASSWORD.getName()))
|
||||
|
Loading…
Reference in New Issue
Block a user