only save (encrypted) user_id in cookie
This commit is contained in:
@@ -79,8 +79,7 @@ async fn login(
|
||||
}
|
||||
};
|
||||
|
||||
let user_json: String = format!("{}", json!(user));
|
||||
cookies.add_private(Cookie::new("loggedin_user", user_json));
|
||||
cookies.add_private(Cookie::new("loggedin_user", format!("{}", json!(user.id))));
|
||||
|
||||
Log::create(
|
||||
db,
|
||||
|
Reference in New Issue
Block a user