mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Save the user object after login.
This commit is contained in:
parent
17498aaf1d
commit
45bb772859
@ -143,6 +143,7 @@ void User::handle_login_request_default(Request *request) {
|
|||||||
|
|
||||||
session->add_object("user", user);
|
session->add_object("user", user);
|
||||||
user->sessions.push_back(session->session_id);
|
user->sessions.push_back(session->session_id);
|
||||||
|
user->save();
|
||||||
|
|
||||||
request->add_cookie(::Cookie("session_id", session->session_id));
|
request->add_cookie(::Cookie("session_id", session->session_id));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user