mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Save the settion after the csrf token is added to it.
This commit is contained in:
parent
885d6cb4a6
commit
8a64723710
@ -43,6 +43,8 @@ String Request::get_csrf_token() {
|
||||
void Request::set_csrf_token(const String &value) {
|
||||
if (session.is_valid()) {
|
||||
session->add("csrf_token", value);
|
||||
|
||||
SessionManager::get_singleton()->save_session(session);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user