projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mod_storage_sql: Dynamically replace backquotes with double quotes when connecting...
[prosody.git]
/
util
/
sasl
/
plain.lua
diff --git
a/util/sasl/plain.lua
b/util/sasl/plain.lua
index f1e04f32d5caf554f30112bbce4987dc9952636d..1a2ba01e406ac1a2b7f63f81fea28c1b3116e7f6 100644
(file)
--- a/
util/sasl/plain.lua
+++ b/
util/sasl/plain.lua
@@
-28,8
+28,8
@@
plain:
return password, state;
end
return password, state;
end
-plain
-
test:
- function(username,
realm, password
)
+plain
_
test:
+ function(username,
password, realm
)
return true or false, state;
end
]]
return true or false, state;
end
]]
@@
-58,9
+58,9
@@
local function plain(self, message)
if self.profile.plain then
local correct_password;
correct_password, state = self.profile.plain(authentication, self.realm);
if self.profile.plain then
local correct_password;
correct_password, state = self.profile.plain(authentication, self.realm);
- if correct_password == password then correct = true; else correct = false; end
+ correct = (correct_password == password);
elseif self.profile.plain_test then
elseif self.profile.plain_test then
- correct, state = self.profile.plain_test(authentication,
self.realm, password
);
+ correct, state = self.profile.plain_test(authentication,
password, self.realm
);
end
self.username = authentication
end
self.username = authentication