diff --git a/data/Dockerfiles/dovecot/docker-entrypoint.sh b/data/Dockerfiles/dovecot/docker-entrypoint.sh index 05b552e9..b2633c27 100755 --- a/data/Dockerfiles/dovecot/docker-entrypoint.sh +++ b/data/Dockerfiles/dovecot/docker-entrypoint.sh @@ -159,7 +159,7 @@ function auth_password_verify(req, pass) VALUES ("%s", 0, "%s", "%s")]], con:escape(req.service), con:escape(req.user), con:escape(req.real_rip))) cur:close() con:close() - return dovecot.auth.PASSDB_RESULT_OK, "password=pass" + return dovecot.auth.PASSDB_RESULT_OK, "" end row = cur:fetch (row, "a") end @@ -180,13 +180,13 @@ function auth_password_verify(req, pass) if tostring(req.real_rip) == "__IPV4_SOGO__" then cur:close() con:close() - return dovecot.auth.PASSDB_RESULT_OK, "password=pass" + return dovecot.auth.PASSDB_RESULT_OK, "" elseif row.has_prot_access == "1" then con:execute(string.format([[REPLACE INTO sasl_log (service, app_password, username, real_rip) VALUES ("%s", %d, "%s", "%s")]], con:escape(req.service), row.id, con:escape(req.user), con:escape(req.real_rip))) cur:close() con:close() - return dovecot.auth.PASSDB_RESULT_OK, "password=pass" + return dovecot.auth.PASSDB_RESULT_OK, "" end end row = cur:fetch (row, "a")