Software /
code /
prosody
Diff
util/sasl/plain.lua @ 3155:c713fa2ba80c
SASL: Minor cleanup.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 03 Jun 2010 17:48:50 +0500 |
parent | 3080:8e842989ced2 |
child | 3179:99c5288a26e4 |
line wrap: on
line diff
--- a/util/sasl/plain.lua Thu Jun 03 17:47:51 2010 +0500 +++ b/util/sasl/plain.lua Thu Jun 03 17:48:50 2010 +0500 @@ -58,7 +58,7 @@ 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