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/plain.lua | |
parent | 164d72fde89f34ff949ccca87f10dff496728603 (diff) | |
download | prosody-14b609e6eebb0d462f5c25180817612612285831.tar.gz prosody-14b609e6eebb0d462f5c25180817612612285831.zip |
SASL: Minor cleanup.
Diffstat (limited to 'util/sasl/plain.lua')
-rw-r--r-- | util/sasl/plain.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl/plain.lua b/util/sasl/plain.lua index 4359bb3f..1a2ba01e 100644 --- a/util/sasl/plain.lua +++ b/util/sasl/plain.lua @@ -58,7 +58,7 @@ local function plain(self, message) 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 correct, state = self.profile.plain_test(authentication, password, self.realm); end |