summaryrefslogtreecommitdiff
path: root/include/persistent_data.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/persistent_data.hpp')
-rw-r--r--include/persistent_data.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/persistent_data.hpp b/include/persistent_data.hpp
index de5d6780f8..7478713161 100644
--- a/include/persistent_data.hpp
+++ b/include/persistent_data.hpp
@@ -239,9 +239,10 @@ class ConfigFile
session["username"] = p.second->username;
session["csrf_token"] = p.second->csrfToken;
session["client_ip"] = p.second->clientIp;
-#ifdef BMCWEB_ENABLE_IBM_MANAGEMENT_CONSOLE
- session["client_id"] = p.second->clientId;
-#endif
+ if (p.second->clientId)
+ {
+ session["client_id"] = *p.second->clientId;
+ }
sessions.push_back(std::move(session));
}
}