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 | 27869c5ecb1a8a0e0c969bc9ecc829cb61f186d4 (patch) | |
tree | 6b45f90c547092d95093ce7a5d5febba3f4f5c0c /util/sasl/plain.lua | |
parent | ff82c8510b8b301b09ca095fd3eceddaa3582677 (diff) | |
download | prosody-27869c5ecb1a8a0e0c969bc9ecc829cb61f186d4.tar.gz prosody-27869c5ecb1a8a0e0c969bc9ecc829cb61f186d4.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 39821182..eaf03d83 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, self.realm, password); end |