# HG changeset patch # User Kim Alvefur # Date 1456686356 -3600 # Node ID 2156aee1233eae0a2f7ba625ce4136abf9e06e65 # Parent c12c9b9c1949b480d289827fae6ac468e0c54396# Parent 6226307f6ac47fab84448e060e5250c0c5b1b8cb Merge 0.10->trunk diff -r c12c9b9c1949 -r 2156aee1233e util/sasl/scram.lua --- a/util/sasl/scram.lua Sun Feb 28 19:27:13 2016 +0100 +++ b/util/sasl/scram.lua Sun Feb 28 20:05:56 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();