diff options
author | Kim Alvefur <zash@zash.se> | 2016-02-28 19:26:14 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-02-28 19:26:14 +0100 |
commit | 5cc8cbce9c81fba7c3dedcd37178d46605589dad (patch) | |
tree | 316e10b60ed8894966031e4c4d420ded235db025 /util/sasl/scram.lua | |
parent | 182b9c81364bf1dd739a0f150c8ba50f08b085d0 (diff) | |
download | prosody-5cc8cbce9c81fba7c3dedcd37178d46605589dad.tar.gz prosody-5cc8cbce9c81fba7c3dedcd37178d46605589dad.zip |
util.sasl.scram: Rename variable to avoid name clash [luacheck]
Diffstat (limited to 'util/sasl/scram.lua')
-rw-r--r-- | util/sasl/scram.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua index a1b5117a..b3c4edc8 100644 --- a/util/sasl/scram.lua +++ b/util/sasl/scram.lua @@ -150,9 +150,9 @@ local function scram_gen(hash_name, H_f, HMAC_f) -- retreive credentials local stored_key, server_key, salt, iteration_count; if self.profile.plain then - local password, state = self.profile.plain(self, username, self.realm) - if state == nil then return "failure", "not-authorized" - elseif state == false then return "failure", "account-disabled" end + local password, status = self.profile.plain(self, username, self.realm) + if status == nil then return "failure", "not-authorized" + elseif status == false then return "failure", "account-disabled" end password = saslprep(password); if not password then @@ -170,8 +170,8 @@ local function scram_gen(hash_name, H_f, HMAC_f) return "failure", "temporary-auth-failure"; end elseif self.profile[profile_name] then - local state; - stored_key, server_key, iteration_count, salt, state = self.profile[profile_name](self, username, self.realm); + local status; + stored_key, server_key, iteration_count, salt, status = self.profile[profile_name](self, username, self.realm); if state == nil then return "failure", "not-authorized" elseif state == false then return "failure", "account-disabled" end end |