# HG changeset patch # User Kim Alvefur # Date 1376423713 -7200 # Node ID 544f5a4a8428c93062f4f75294b6927f29c7d904 # Parent bd88728b0d954bc046875cc77790393549d813a1 mod_auth_dovecot: Check return value properly diff -r bd88728b0d95 -r 544f5a4a8428 mod_auth_dovecot/auth_dovecot/mod_auth_dovecot.lua --- 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()