From 03088068c98d75abee6b56f42bf58e14b1cbe87d Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Tue, 7 Mar 2023 12:58:43 +0200 Subject: [PATCH] feat(client): revamp CfgUser --- client/src/cfg/mod.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/client/src/cfg/mod.rs b/client/src/cfg/mod.rs index 072323b..44ee446 100644 --- a/client/src/cfg/mod.rs +++ b/client/src/cfg/mod.rs @@ -45,24 +45,18 @@ impl Default for CfgSettings { pub struct CfgUser { /// User logged in status pub logged_in: bool, - /// User Token - pub user_token: String, - /// User ID - pub id: String, /// Username pub username: String, - /// User email - pub email: String, + /// User Session Cookie + pub cookie: String, } impl Default for CfgUser { fn default() -> Self { CfgUser { logged_in: false, - user_token: "".to_string(), - id: "".to_string(), username: "".to_string(), - email: "".to_string(), + cookie: "".to_string(), } } } -- 2.44.1