summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fbdaemon/authenticationjob.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/fbdaemon/authenticationjob.cpp b/fbdaemon/authenticationjob.cpp
index 39368d4..c4a22a5 100644
--- a/fbdaemon/authenticationjob.cpp
+++ b/fbdaemon/authenticationjob.cpp
@@ -29,16 +29,13 @@ AuthenticationJob::AuthenticationJob(const SessionSettings &settings, KIMAP::Ses
}
-
void AuthenticationJob::start()
{
Debug() << "logging in as " << mSessionSettings.userName << " using " << mSessionSettings.authorizationName;
KIMAP::LoginJob *loginJob = new KIMAP::LoginJob( mSession );
+ loginJob->setUserName(mSessionSettings.userName);
if (!mSessionSettings.authorizationName.isEmpty()) {
- loginJob->setUserName(mSessionSettings.userName);
loginJob->setAuthorizationName(mSessionSettings.authorizationName);
- } else {
- loginJob->setUserName(mSessionSettings.userName);
}
loginJob->setPassword(Settings::instance().getPassword());