diff --git a/spectrum/src/frontends/xmpp/XMPPUserRegistration.cpp b/spectrum/src/frontends/xmpp/XMPPUserRegistration.cpp index 31dd8302da4fc1adadc97b5dfd5ac8d10952a232..af80b6921262744277fe18e47569b7a3906373b7 100644 --- a/spectrum/src/frontends/xmpp/XMPPUserRegistration.cpp +++ b/spectrum/src/frontends/xmpp/XMPPUserRegistration.cpp @@ -36,7 +36,7 @@ #include #include #include -#include +#include #if HAVE_SWIFTEN_3 #include #endif @@ -266,7 +266,7 @@ bool XMPPUserRegistration::handleGetRequest(const Swift::JID& from, const Swift: if (!CONFIG_BOOL(m_config,"registration.enable_public_registration")) { std::vector const &x = CONFIG_VECTOR(m_config,"service.allowed_servers"); if (std::find(x.begin(), x.end(), from.getDomain()) == x.end()) { - LOG4CXX_INFO(logger, from.toBare().toString() << ": This user has no permissions to register an account") + LOG4CXX_INFO(logger, from.toBare().toString() << ": This user has no permissions to register an account"); sendError(from, id, ErrorPayload::BadRequest, ErrorPayload::Modify); return true; } @@ -290,7 +290,7 @@ bool XMPPUserRegistration::handleSetRequest(const Swift::JID& from, const Swift: if (!CONFIG_BOOL(m_config,"registration.enable_public_registration")) { std::vector const &x = CONFIG_VECTOR(m_config,"service.allowed_servers"); if (std::find(x.begin(), x.end(), from.getDomain()) == x.end()) { - LOG4CXX_INFO(logger, barejid << ": This user has no permissions to register an account") + LOG4CXX_INFO(logger, barejid << ": This user has no permissions to register an account"); sendError(from, id, ErrorPayload::BadRequest, ErrorPayload::Modify); return true; } @@ -342,7 +342,7 @@ bool XMPPUserRegistration::handleSetRequest(const Swift::JID& from, const Swift: } else */ if (local_username == "" || local_password == "") { sendResponse(from, id, InBandRegistrationPayload::ref()); return true; - } + } // Swift::logging = true; bool validLocal = false; std::string localLookupServer = CONFIG_STRING(m_config, "registration.local_account_server"); @@ -350,7 +350,7 @@ bool XMPPUserRegistration::handleSetRequest(const Swift::JID& from, const Swift: SimpleEventLoop localLookupEventLoop; BoostNetworkFactories localLookupNetworkFactories(&localLookupEventLoop); Client localLookupClient(localLookupJID, local_password, &localLookupNetworkFactories); - + // TODO: this is neccessary on my server ... but should maybe omitted localLookupClient.setAlwaysTrustCertificates(); localLookupClient.connect();