Software /
code /
prosody
Changeset
7220:2156aee1233e
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 28 Feb 2016 20:05:56 +0100 |
parents | 7219:c12c9b9c1949 (current diff) 7218:6226307f6ac4 (diff) |
children | 7225:a74f0b7be6bf |
files | |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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();