mod_auth_dovecot/auth_dovecot/mod_auth_dovecot.lua
changeset 1213 544f5a4a8428
parent 1212 bd88728b0d95
--- a/mod_auth_dovecot/auth_dovecot/mod_auth_dovecot.lua	Sun Aug 11 00:00:58 2013 +0200
+++ b/mod_auth_dovecot/auth_dovecot/mod_auth_dovecot.lua	Tue Aug 13 21:55:13 2013 +0200
@@ -85,7 +85,7 @@
 
 if append_host then
 	function provider.test_password(username, password)
-		return new_sasl(module.host):plain_test(username .. "@".. (service_realm or module.host), password);
+		return new_sasl(module.host):plain_test(username .. "@".. (service_realm or module.host), password) == "success";
 	end
 
 	function provider.get_sasl_handler()