diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-06-03 17:48:50 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-06-03 17:48:50 +0500 |
commit | 14b609e6eebb0d462f5c25180817612612285831 (patch) | |
tree | 7a7796fb5920035cfd38bf500e058df6bac48541 /util/sasl/scram.lua | |
parent | 164d72fde89f34ff949ccca87f10dff496728603 (diff) | |
download | prosody-14b609e6eebb0d462f5c25180817612612285831.tar.gz prosody-14b609e6eebb0d462f5c25180817612612285831.zip |
SASL: Minor cleanup.
Diffstat (limited to 'util/sasl/scram.lua')
-rw-r--r-- | util/sasl/scram.lua | 6 |
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) |