Software /
code /
prosody
Comparison
util/sasl/scram.lua @ 8728:41c959c5c84b
Fix spelling throughout the codebase [codespell]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 04 Feb 2018 01:51:25 +0100 |
parent | 8555:4f0f5b49bb03 |
child | 10216:a51d017e6173 |
child | 10912:646af16a3f32 |
comparison
equal
deleted
inserted
replaced
8727:285075a27f28 | 8728:41c959c5c84b |
---|---|
158 log("debug", "Username violates either SASLprep or contains forbidden character sequences.") | 158 log("debug", "Username violates either SASLprep or contains forbidden character sequences.") |
159 return "failure", "malformed-request", "Invalid username."; | 159 return "failure", "malformed-request", "Invalid username."; |
160 end | 160 end |
161 self.username = username; | 161 self.username = username; |
162 | 162 |
163 -- retreive credentials | 163 -- retrieve credentials |
164 local stored_key, server_key, salt, iteration_count; | 164 local stored_key, server_key, salt, iteration_count; |
165 if self.profile.plain then | 165 if self.profile.plain then |
166 local password, status = self.profile.plain(self, username, self.realm) | 166 local password, status = self.profile.plain(self, username, self.realm) |
167 if status == nil then return "failure", "not-authorized" | 167 if status == nil then return "failure", "not-authorized" |
168 elseif status == false then return "failure", "account-disabled" end | 168 elseif status == false then return "failure", "account-disabled" end |