util/sasl/scram.lua

changeset 3168
bb4286962d69
parent 3167
6459166ed8f3
child 3188
d35b181a895a
--- a/util/sasl/scram.lua	Thu Jun 03 17:47:51 2010 +0500
+++ b/util/sasl/scram.lua	Thu Jun 03 17:48:50 2010 +0500
@@ -93,10 +93,8 @@
 	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)

mercurial