From aa0b6f765aef1ff89e763fecb46d014d82f67ec3 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 7 Dec 2021 16:23:23 +0000 Subject: 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. --- util/sasl/scram.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua index 865f8cf7..f11ae2e0 100644 --- a/util/sasl/scram.lua +++ b/util/sasl/scram.lua @@ -175,7 +175,7 @@ local function scram_gen(hash_name, H_f, HMAC_f, get_auth_db, expect_cb) 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; -- cgit v1.2.3