# HG changeset patch # User Matthew Wild # Date 1638894203 0 # Node ID 9184bdda22bec490eb45cf266d4d3c5971696341 # Parent 5a3781a1228566cded541a1a359aba220b005b9d util.sasl.scram: Store username property rather than cached local (#399) This should allow modules to override the username in a profile handler by assigning to self.username. diff -r 5a3781a12285 -r 9184bdda22be util/sasl/scram.lua --- a/util/sasl/scram.lua Tue Dec 07 13:21:20 2021 +0100 +++ b/util/sasl/scram.lua Tue Dec 07 16:23:23 2021 +0000 @@ -175,7 +175,7 @@ self.state = { gs2_header = gs2_header; gs2_cbind_name = gs2_cbind_name; - username = username; + username = self.username; -- Reference property instead of local, in case it was modified by the profile nonce = nonce; server_key = server_key;