summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Knauß <mail@sandroknauss.de>2014-05-20 22:00:50 (GMT)
committerSandro Knauß <mail@sandroknauss.de>2014-05-29 16:52:54 (GMT)
commit2d448664463ee16317875f9b7273a465ec0aeffc (patch)
treead0ba18bffe5fe3dfdf988f958b7bfd378fdbcf9
parentccd9274310b01d7fa7deca9d68e1351e58ee1284 (diff)
downloadkolab-utils-2d448664463ee16317875f9b7273a465ec0aeffc.tar.gz
cleanup logic a little bit
-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());