Software /
code /
prosody
Diff
util/sasl/anonymous.lua @ 12940:2aebd9bf02fc
util.sasl.oauthbearer: Adjust parsing of GS2 to allow lack of authzid
Partly copied from util.sasl.scram and then reduced a bit.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 16 Mar 2023 13:45:49 +0100 |
parent | 8874:d6eb910a204d |
child | 12975:d10957394a3c |
line wrap: on
line diff
--- a/util/sasl/anonymous.lua Thu Mar 16 13:20:19 2023 +0100 +++ b/util/sasl/anonymous.lua Thu Mar 16 13:45:49 2023 +0100 @@ -33,8 +33,8 @@ local username; repeat username = generate_random_id():lower(); - until self.profile.anonymous(self, username, self.realm); - self.username = username; + self.username = username; + until self.profile.anonymous(self, username, self.realm, message); return "success" end