Software /
code /
prosody
Diff
util/sasl/plain.lua @ 12945:d2c1c327a4d1
util.sasl.{scram,plain}: Pass authzid to SASL profile callback
For potential future use.
Used for logging into a different account than the one used for
authentication.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 16 Mar 2023 13:57:30 +0100 |
parent | 10913:54953b5a214b |
child | 12975:d10957394a3c |
line wrap: on
line diff
--- a/util/sasl/plain.lua Sat Mar 11 12:12:49 2023 +0100 +++ b/util/sasl/plain.lua Thu Mar 16 13:57:30 2023 +0100 @@ -69,10 +69,10 @@ local correct, state = false, false; if self.profile.plain then local correct_password; - correct_password, state = self.profile.plain(self, authentication, self.realm); + correct_password, state = self.profile.plain(self, authentication, self.realm, authorization); correct = (saslprep(correct_password) == password); elseif self.profile.plain_test then - correct, state = self.profile.plain_test(self, authentication, password, self.realm); + correct, state = self.profile.plain_test(self, authentication, password, self.realm, authorization); end if state == false then