203 if Y == nil then return "failure", "not-authorized" |
203 if Y == nil then return "failure", "not-authorized" |
204 elseif Y == false then return "failure", "account-disabled" end |
204 elseif Y == false then return "failure", "account-disabled" end |
205 local A1 = ""; |
205 local A1 = ""; |
206 if response.authzid then |
206 if response.authzid then |
207 if response.authzid == self.username.."@"..self.realm then |
207 if response.authzid == self.username.."@"..self.realm then |
|
208 -- COMPAT |
208 log("warn", "Client is violating XMPP RFC. See section 6.1 of RFC 3920."); |
209 log("warn", "Client is violating XMPP RFC. See section 6.1 of RFC 3920."); |
209 A1 = Y..":"..response["nonce"]..":"..response["cnonce"]..":"..response.authzid; |
210 A1 = Y..":"..response["nonce"]..":"..response["cnonce"]..":"..response.authzid; |
210 else |
211 else |
211 A1 = "?"; |
212 A1 = "?"; |
212 end |
213 end |