summaryrefslogtreecommitdiff
path: root/include/login_routes.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/login_routes.hpp')
-rw-r--r--include/login_routes.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/login_routes.hpp b/include/login_routes.hpp
index 00debb5531..122e741340 100644
--- a/include/login_routes.hpp
+++ b/include/login_routes.hpp
@@ -37,8 +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";
@@ -77,8 +77,8 @@ inline void requestRoutes(App& app)
if (dataIt->size() == 2)
{
nlohmann::json::iterator userIt2 = dataIt->begin();
- nlohmann::json::iterator passIt2 =
- dataIt->begin() + 1;
+ nlohmann::json::iterator passIt2 = dataIt->begin() +
+ 1;
looksLikePhosphorRest = true;
if (userIt2 != dataIt->end() &&
passIt2 != dataIt->end())
@@ -235,8 +235,8 @@ inline void requestRoutes(App& app)
const auto& session = req.session;
if (session != nullptr)
{
- asyncResp->res.jsonValue["data"] =
- "User '" + session->username + "' logged out";
+ asyncResp->res.jsonValue["data"] = "User '" + session->username +
+ "' logged out";
asyncResp->res.jsonValue["message"] = "200 OK";
asyncResp->res.jsonValue["status"] = "ok";