aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl.lua
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-08-19 22:04:14 +0200
committerTobias Markmann <tm@ayena.de>2009-08-19 22:04:14 +0200
commit38bc2857bd5100a02ccfa7ed2d91f46585f73012 (patch)
treefc9155e9140fc79bee37931b3cc7899f10c784d8 /util/sasl.lua
parent563d1911f2f8109a12d5ba816deaf2ef7127a96b (diff)
downloadprosody-38bc2857bd5100a02ccfa7ed2d91f46585f73012.tar.gz
prosody-38bc2857bd5100a02ccfa7ed2d91f46585f73012.zip
Change variable name. The previous choice was too ugly looking.
Diffstat (limited to 'util/sasl.lua')
-rw-r--r--util/sasl.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index 15f3e29e..6305d414 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -20,7 +20,7 @@ local generate_uuid = require "util.uuid".generate;
local t_insert, t_concat = table.insert, table.concat;
local to_byte, to_char = string.byte, string.char;
local to_unicode = require "util.encodings".idna.to_unicode;
-local u_e_saslprep = require "utii.encodings".stringprep.saslprep;
+local saslprep = require "utii.encodings".stringprep.saslprep;
local s_match = string.match;
local gmatch = string.gmatch
local string = string
@@ -40,7 +40,7 @@ local function new_plain(realm, password_handler)
local authorization = s_match(response, "([^&%z]+)")
local authentication = s_match(response, "%z([^&%z]+)%z")
local password = s_match(response, "%z[^&%z]+%z([^&%z]+)")
- authorization, authentication, password = u_e_saslprep(authorization), u_e_saslprep(authentication), u_e_saslprep(password);
+ authorization, authentication, password = saslprep(authorization), saslprep(authentication), saslprep(password);
if authentication == nil or password == nil then return "failure", "malformed-request" end
@@ -52,7 +52,7 @@ local function new_plain(realm, password_handler)
local claimed_password = ""
if password_encoding == nil then claimed_password = password
else claimed_password = password_encoding(password) end
- caimed_password = u_e_saslprep(claimed_password);
+ caimed_password = saslprep(claimed_password);
self.username = authentication
if claimed_password == correct_password then