Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
7217:0a43b7ffa3af | 7218:6226307f6ac4 |
---|---|
170 return "failure", "temporary-auth-failure"; | 170 return "failure", "temporary-auth-failure"; |
171 end | 171 end |
172 elseif self.profile[profile_name] then | 172 elseif self.profile[profile_name] then |
173 local status; | 173 local status; |
174 stored_key, server_key, iteration_count, salt, status = self.profile[profile_name](self, username, self.realm); | 174 stored_key, server_key, iteration_count, salt, status = self.profile[profile_name](self, username, self.realm); |
175 if state == nil then return "failure", "not-authorized" | 175 if status == nil then return "failure", "not-authorized" |
176 elseif state == false then return "failure", "account-disabled" end | 176 elseif status == false then return "failure", "account-disabled" end |
177 end | 177 end |
178 | 178 |
179 local nonce = clientnonce .. generate_uuid(); | 179 local nonce = clientnonce .. generate_uuid(); |
180 local server_first_message = "r="..nonce..",s="..base64.encode(salt)..",i="..iteration_count; | 180 local server_first_message = "r="..nonce..",s="..base64.encode(salt)..",i="..iteration_count; |
181 self.state = { | 181 self.state = { |