mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +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);
|
||||
user->sessions.push_back(session->session_id);
|
||||
user->save();
|
||||
|
||||
request->add_cookie(::Cookie("session_id", session->session_id));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user