aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-28 20:01:13 +0100
committerKim Alvefur <zash@zash.se>2016-02-28 20:01:13 +0100
commita045849dfac5e50ef8c88c1d89b044e586d6c8e6 (patch)
treec57b22a158de1ea73823a6cea208a0ee38135443 /util/sasl
parent30411b481d0457fdbf434898fbce94e51b0d071c (diff)
downloadprosody-a045849dfac5e50ef8c88c1d89b044e586d6c8e6.tar.gz
prosody-a045849dfac5e50ef8c88c1d89b044e586d6c8e6.zip
util.sasl.scram: Rename variable in places missed in 65e36b81d56a (thanks mt)
Diffstat (limited to 'util/sasl')
-rw-r--r--util/sasl/scram.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index febbc639..d2b2abde 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -172,8 +172,8 @@ local function scram_gen(hash_name, H_f, HMAC_f)
elseif self.profile[profile_name] then
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
+ if status == nil then return "failure", "not-authorized"
+ elseif status == false then return "failure", "account-disabled" end
end
local nonce = clientnonce .. generate_uuid();