aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sasl.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sasl.ml b/lib/sasl.ml
index 606beb6..5a0dd80 100644
--- a/lib/sasl.ml
+++ b/lib/sasl.ml
@@ -13,9 +13,9 @@ let read_sasl_error = function
type sasl_auth = (string option, sasl_error * (string * string) option) result
-let send_auth_stanza (stream, push) jid pass mechanism =
+let send_auth_stanza (stream, push) localpart pass mechanism =
let gen_auth = function
- | PLAIN -> Base64.encode_exn ("\x00" ^ jid ^ "\x00" ^ pass)
+ | PLAIN -> Base64.encode_exn ("\x00" ^ localpart ^ "\x00" ^ pass)
and parse_sasl_response stanza =
let open Markup in
let parse_additional_info = function