]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Remove old var expand syntax from test-lua
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 11 Mar 2025 07:32:30 +0000 (09:32 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 11 Mar 2025 17:57:44 +0000 (19:57 +0200)
src/auth/test-lua.c

index a15915adeccf6026165f0b3e4ab705b44c8e3f9a..f64f47eea5844ee00c6f1f1e4d87a3c237461df2 100644 (file)
@@ -109,7 +109,7 @@ static void test_db_lua_auth_lookup(void)
        static const char *luascript =
 "function auth_passdb_lookup(req)\n"
 "  req:log_debug(\"user \" .. req.user)\n"
-"  return dovecot.auth.PASSDB_RESULT_OK, req:var_expand(\"password=pass\")\n"
+"  return dovecot.auth.PASSDB_RESULT_OK, {[\"password\"]=\"pass\"}\n"
 "end\n";
        const char *error = NULL;
        struct dlua_script *script = NULL;