From fada25b1563d3d1da08da3ce8c47fa5b820cfbd8 Mon Sep 17 00:00:00 2001 From: Clombrong Date: Thu, 26 Jun 2025 17:08:25 +0200 Subject: refactor(sasl): rename features record and its fields --- lib/sasl.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sasl.ml') diff --git a/lib/sasl.ml b/lib/sasl.ml index ff6436a..2241a91 100644 --- a/lib/sasl.ml +++ b/lib/sasl.ml @@ -63,9 +63,9 @@ let authenticate (portal : Portal.t) ({jid; password; preferred_mechanisms} : au | [localpart; _domain] -> localpart | _ -> failwith "Invalid JID" in - let* {sasl_mechanisms; _} = Xml.get (fst portal) >|= Stream.parse_features + let* {mechanisms; _} = Xml.get (fst portal) >|= Stream.parse_features in let preferred, not_preferred = - List.partition (fun f -> List.exists ((=) f) preferred_mechanisms) sasl_mechanisms + List.partition (fun f -> List.exists ((=) f) preferred_mechanisms) mechanisms in (* Function that takes a [sasl_auth] and returns whether this attempt should be retried, or is definitive (e.g, success or bad credentials). *) -- cgit v1.2.3