Software /
code /
prosody
Diff
util/sasl/scram.lua @ 7218:6226307f6ac4
util.sasl.scram: Rename variable in places missed in 65e36b81d56a (thanks mt)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 28 Feb 2016 20:01:13 +0100 |
parent | 7217:0a43b7ffa3af |
child | 8095:57192cf193c7 |
line wrap: on
line diff
--- a/util/sasl/scram.lua Sun Feb 28 19:26:45 2016 +0100 +++ b/util/sasl/scram.lua Sun Feb 28 20:01:13 2016 +0100 @@ -172,8 +172,8 @@ 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();