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.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/persistent_data.hpp b/include/persistent_data.hpp
index 5079a8c151..048d9877da 100644
--- a/include/persistent_data.hpp
+++ b/include/persistent_data.hpp
@@ -234,9 +234,10 @@ class ConfigFile
session["username"] = p.second->username;
session["csrf_token"] = p.second->csrfToken;
session["client_ip"] = p.second->clientIp;
- if (p.second->clientId)
+ const std::optional<std::string>& clientId = p.second->clientId;
+ if (clientId)
{
- session["client_id"] = *p.second->clientId;
+ session["client_id"] = *clientId;
}
sessions.emplace_back(std::move(session));
}