mod_console: Don't allow bang bang as the first command in a session, or when the...
[prosody.git] / util / sasl / plain.lua
index eaf03d8361b8fe9bf51850908abb49a491f993ca..1a2ba01e406ac1a2b7f63f81fea28c1b3116e7f6 100644 (file)
@@ -29,7 +29,7 @@ plain:
        end
 
 plain_test:
-       function(username, realm, password)
+       function(username, password, realm)
                return true or false, state;
        end
 ]]
@@ -60,7 +60,7 @@ local function plain(self, message)
                correct_password, state = self.profile.plain(authentication, self.realm);
                correct = (correct_password == password);
        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