aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl/scram.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-03 17:48:50 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-03 17:48:50 +0500
commit27869c5ecb1a8a0e0c969bc9ecc829cb61f186d4 (patch)
tree6b45f90c547092d95093ce7a5d5febba3f4f5c0c /util/sasl/scram.lua
parentff82c8510b8b301b09ca095fd3eceddaa3582677 (diff)
downloadprosody-27869c5ecb1a8a0e0c969bc9ecc829cb61f186d4.tar.gz
prosody-27869c5ecb1a8a0e0c969bc9ecc829cb61f186d4.zip
SASL: Minor cleanup.
Diffstat (limited to 'util/sasl/scram.lua')
-rw-r--r--util/sasl/scram.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index 1340423c..c366a152 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -93,10 +93,8 @@ local function validate_username(username)
return username;
end
-local function hashprep( hashname )
- local hash = hashname:lower()
- hash = hash:gsub("-", "_")
- return hash
+local function hashprep(hashname)
+ return hashname:lower():gsub("-", "_");
end
function saltedPasswordSHA1(password, salt, iteration_count)