aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl/scram.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-05-24 19:44:27 +0100
committerMatthew Wild <mwild1@gmail.com>2010-05-24 19:44:27 +0100
commita48703aa3b3006d66c7e0e685fa13fc6723c936d (patch)
tree7870cca0d56590a232f2a6a4d18dd38592ae1c79 /util/sasl/scram.lua
parent8980fe5b9644551f76ca0d4bb59598ad2fb9940e (diff)
downloadprosody-a48703aa3b3006d66c7e0e685fa13fc6723c936d.tar.gz
prosody-a48703aa3b3006d66c7e0e685fa13fc6723c936d.zip
util.sasl.scram: Fix remaining - in profile name
Diffstat (limited to 'util/sasl/scram.lua')
-rw-r--r--util/sasl/scram.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index 41c7a50a..52656a89 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -164,7 +164,7 @@ local function scram_gen(hash_name, H_f, HMAC_f)
return "failure", "temporary-auth-failure";
end
elseif self.profile["scram_"..hashprep(hash_name)] then
- local salted_password, iteration_count, salt, state = self.profile["scram-"..hash_name](self.state.name, self.realm);
+ local salted_password, iteration_count, salt, state = self.profile["scram_"..hashprep(hash_name)](self.state.name, self.realm);
if state == nil then return "failure", "not-authorized"
elseif state == false then return "failure", "account-disabled" end