aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-12 08:34:51 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-12 08:34:51 +0000
commit37224e2eb0ba965ea6a3ffbf834209d7b9016a44 (patch)
tree49726c90a92e8a39abfe6c30ea4872b117266cf0 /src
parentf312239c8cae0a2aa58edcdc0589479229c98b55 (diff)
downloadqxmpp-37224e2eb0ba965ea6a3ffbf834209d7b9016a44.tar.gz
fix and test plaintext Non-SASL Auth Iq
Diffstat (limited to 'src')
-rw-r--r--src/QXmppNonSASLAuth.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/QXmppNonSASLAuth.cpp b/src/QXmppNonSASLAuth.cpp
index 7fa1e9e8..dde91363 100644
--- a/src/QXmppNonSASLAuth.cpp
+++ b/src/QXmppNonSASLAuth.cpp
@@ -57,6 +57,8 @@ void QXmppNonSASLAuthIq::toXmlElementFromChild(QXmlStreamWriter *writer) const
writer->writeTextElement("username", m_username);
if (!m_digest.isEmpty())
writer->writeTextElement("digest", m_digest.toHex());
+ if (!m_password.isEmpty())
+ writer->writeTextElement("password", m_password);
if (!m_resource.isEmpty())
writer->writeTextElement("resource", m_resource);
writer->writeEndElement();