mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🐛 changed JsonFilter saving to body to setting parameter
This commit is contained in:
parent
e3210f7337
commit
f4f28fa92f
2 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
CACHE_FOREVER \
|
||||
callback(resp);
|
||||
|
||||
#define NAME_PARAM req->getBody().data()
|
||||
#define NAME_PARAM req->getParameter("name")
|
||||
|
||||
api::api(Bank &b) noexcept : bank(b)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ void UserFilter<set_body_flag, require_admin>::doFilter(const HttpRequestPtr &re
|
|||
{
|
||||
if constexpr (set_body_flag)
|
||||
{
|
||||
req->setBody(username); //feels sub optimal
|
||||
req->setParameter("name", username);
|
||||
}
|
||||
fccb();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue