diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-06-02 19:05:43 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-06-02 19:05:43 (GMT) |
commit | 3362805ffb92452a82b6ca5866377cd85fae764f (patch) | |
tree | 1e276f6a381c43ac2d777c386ff95fdbc4b54155 | |
parent | f5bc852eb47384f2319ac5e3d4b9d33f4c14ce9a (diff) | |
download | swift-3362805ffb92452a82b6ca5866377cd85fae764f.zip swift-3362805ffb92452a82b6ca5866377cd85fae764f.tar.bz2 |
Serialize <success/> stanza correctly.
-rw-r--r-- | Swiften/Serializer/AuthSuccessSerializer.cpp | 2 |
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>"; } } |