diff options
author | Ed Tanous <edtanous@google.com> | 2023-02-15 02:05:48 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2023-03-11 03:50:32 +0300 |
commit | 33c6b58026e5dd3bc600d152a07b95f863bfa1a7 (patch) | |
tree | 17d8803445b5310f48eba160c2fc488a70fcd215 /include/login_routes.hpp | |
parent | 98fe740b59a96fd4d4232655f820da168129f090 (diff) | |
download | bmcweb-33c6b58026e5dd3bc600d152a07b95f863bfa1a7.tar.xz |
Remove body member from Request
Per cpp core guidelines, these should be methods.
Tested: on last patchset of the series.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Ib16479db9d2b68da68e7ad6e825c7e205c64f1de
Diffstat (limited to 'include/login_routes.hpp')
-rw-r--r-- | include/login_routes.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/login_routes.hpp b/include/login_routes.hpp index e3b8c195d2..00debb5531 100644 --- a/include/login_routes.hpp +++ b/include/login_routes.hpp @@ -37,7 +37,8 @@ inline void requestRoutes(App& app) // Check if auth was provided by a payload if (contentType.starts_with("application/json")) { - loginCredentials = nlohmann::json::parse(req.body, nullptr, false); + loginCredentials = + nlohmann::json::parse(req.body(), nullptr, false); if (loginCredentials.is_discarded()) { BMCWEB_LOG_DEBUG << "Bad json in request"; |