util.serialization: Implemented deserialize().
[prosody.git] / util / sasl / plain.lua
index 4359bb3f4118034a6df5df11cb66e619c9e1617b..1a2ba01e406ac1a2b7f63f81fea28c1b3116e7f6 100644 (file)
@@ -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