summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2023-06-16 21:32:36 +0300
committerEd Tanous <edtanous@google.com>2023-06-17 00:19:43 +0300
commitc3b3ad033400cc455cdce6601a982fa94405e84a (patch)
tree174a03c8ebbf4e399c15cd1a3d1ef63e048c4104 /include
parent7e9c08ede1dad0068d3e10955b75202fd9193999 (diff)
downloadbmcweb-c3b3ad033400cc455cdce6601a982fa94405e84a.tar.xz
Set cookieAuth variable for cookie
Change-Id: Ib5fb6dcfaf63520cbc07ca909e0806480440296a Signed-off-by: Ed Tanous <edtanous@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/authentication.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/authentication.hpp b/include/authentication.hpp
index 0e5e88060a..9e3405be63 100644
--- a/include/authentication.hpp
+++ b/include/authentication.hpp
@@ -156,6 +156,7 @@ static std::shared_ptr<persistent_data::UserSession>
{
return nullptr;
}
+ sessionOut->cookieAuth = true;
#ifndef BMCWEB_INSECURE_DISABLE_CSRF_PREVENTION
// RFC7231 defines methods that need csrf protection
if (method != boost::beast::http::verb::get)