Save the settion after the csrf token is added to it.

This commit is contained in:
Relintai 2022-01-09 15:53:58 +01:00
parent 885d6cb4a6
commit 8a64723710

View File

@ -43,6 +43,8 @@ String Request::get_csrf_token() {
void Request::set_csrf_token(const String &value) { void Request::set_csrf_token(const String &value) {
if (session.is_valid()) { if (session.is_valid()) {
session->add("csrf_token", value); session->add("csrf_token", value);
SessionManager::get_singleton()->save_session(session);
} }
} }