|
Lines 2020-2033
Link Here
|
| 2020 |
} |
2020 |
} |
| 2021 |
} |
2021 |
} |
| 2022 |
if (!clientLogin (myUser, myPass, resultInfo)) |
2022 |
if (!clientLogin (myUser, myPass, resultInfo)) |
| 2023 |
error(KIO::ERR_COULD_NOT_LOGIN, i18n("Unable to login. Probably the " |
2023 |
error(KIO::ERR_COULD_NOT_AUTHENTICATE, i18n("Unable to login. Probably the " |
| 2024 |
"password is wrong.\nThe server %1 replied:\n%2").arg(myHost).arg(resultInfo)); |
2024 |
"password is wrong.\nThe server %1 replied:\n%2").arg(myHost).arg(resultInfo)); |
| 2025 |
} |
2025 |
} |
| 2026 |
else |
2026 |
else |
| 2027 |
{ |
2027 |
{ |
| 2028 |
#ifdef HAVE_LIBSASL2 |
2028 |
#ifdef HAVE_LIBSASL2 |
| 2029 |
if (!clientAuthenticate (this, authInfo, myHost, myAuth, mySSL, resultInfo)) |
2029 |
if (!clientAuthenticate (this, authInfo, myHost, myAuth, mySSL, resultInfo)) |
| 2030 |
error(KIO::ERR_COULD_NOT_LOGIN, i18n("Unable to authenticate via %1.\n" |
2030 |
error(KIO::ERR_COULD_NOT_AUTHENTICATE, i18n("Unable to authenticate via %1.\n" |
| 2031 |
"The server %2 replied:\n%3").arg(myAuth).arg(myHost).arg(resultInfo)); |
2031 |
"The server %2 replied:\n%3").arg(myAuth).arg(myHost).arg(resultInfo)); |
| 2032 |
else { |
2032 |
else { |
| 2033 |
myUser = authInfo.username; |
2033 |
myUser = authInfo.username; |