Skip to content

Commit

Permalink
auth: Store password with auth_set_field in Lua passdb
Browse files Browse the repository at this point in the history
Makes caching work for passwords
  • Loading branch information
cmouse committed Oct 29, 2018
1 parent 9516018 commit caa69d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/auth/passdb-lua.c
Expand Up @@ -58,6 +58,8 @@ passdb_lua_lookup(struct auth_request *request,
} else {
if (*scheme_r == NULL)
*scheme_r = request->passdb->passdb->default_pass_scheme;
auth_request_set_field(request, "password",
*password_r, *scheme_r);
}
} else if (*password_r != NULL && **password_r != '\0') {
auth_request_log_info(request, AUTH_SUBSYS_DB,
Expand Down

0 comments on commit caa69d7

Please sign in to comment.