summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-06-02 19:05:43 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-06-02 19:05:43 (GMT)
commit3362805ffb92452a82b6ca5866377cd85fae764f (patch)
tree1e276f6a381c43ac2d777c386ff95fdbc4b54155
parentf5bc852eb47384f2319ac5e3d4b9d33f4c14ce9a (diff)
downloadswift-contrib-3362805ffb92452a82b6ca5866377cd85fae764f.zip
swift-contrib-3362805ffb92452a82b6ca5866377cd85fae764f.tar.bz2
Serialize <success/> stanza correctly.
-rw-r--r--Swiften/Serializer/AuthSuccessSerializer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Serializer/AuthSuccessSerializer.cpp b/Swiften/Serializer/AuthSuccessSerializer.cpp
index 44fa709..f27b2cb 100644
--- a/Swiften/Serializer/AuthSuccessSerializer.cpp
+++ b/Swiften/Serializer/AuthSuccessSerializer.cpp
@@ -17,7 +17,7 @@ AuthSuccessSerializer::AuthSuccessSerializer() {
String AuthSuccessSerializer::serialize(boost::shared_ptr<Element> element) const {
boost::shared_ptr<AuthSuccess> authRequest(boost::dynamic_pointer_cast<AuthSuccess>(element));
String value = (authRequest->getValue().isEmpty() ? "=" : Base64::encode(authRequest->getValue()));
- return "<success xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">" + value + "</challenge>";
+ return "<success xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">" + value + "</success>";
}
}