better error message for server mode

This commit is contained in:
Jan Kaluza 2013-01-22 09:28:26 +01:00
parent 22270d1b61
commit 58f50c7544

View file

@ -98,7 +98,7 @@ void UserRegistry::onPasswordValid(const Swift::JID &user) {
void UserRegistry::onPasswordInvalid(const Swift::JID &user, const std::string &error) {
std::string key = user.toBare().toString();
if (users.find(key) != users.end()) {
LOG4CXX_INFO(logger, key << ": Password is invalid");
LOG4CXX_INFO(logger, key << ": Password is invalid or there was an error when connecting the legacy network");
users[key].session->handlePasswordInvalid(error);
users.erase(key);
}