From 975ea6799fec6b39d0626f49f822be8695d1f1e4 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Thu, 22 Dec 2022 12:29:49 +0200 Subject: [PATCH] New CfgUser fields --- sdbclient/src/cfg/mod.rs | 6 ++++++ sdbclient/src/main.rs | 3 +++ 2 files changed, 9 insertions(+) diff --git a/sdbclient/src/cfg/mod.rs b/sdbclient/src/cfg/mod.rs index 7810af5..983b283 100644 --- a/sdbclient/src/cfg/mod.rs +++ b/sdbclient/src/cfg/mod.rs @@ -30,6 +30,12 @@ pub struct CfgUser { pub logged_in: bool, /// User Token pub user_token: String, + /// User ID + pub id: String, + /// Username + pub username: String, + /// User email + pub email: String, } /// Settings that the user has no access to, or can only access through developer settings diff --git a/sdbclient/src/main.rs b/sdbclient/src/main.rs index 09ec185..4a4c456 100644 --- a/sdbclient/src/main.rs +++ b/sdbclient/src/main.rs @@ -91,6 +91,9 @@ fn main() { .insert_resource(cfg::CfgUser { logged_in: false, user_token: "".to_string(), + id: "".to_string(), + username: "".to_string(), + email: "".to_string(), }) .insert_resource(cfg::CfgHidden { api_server: "http://localhost:8080/api".to_string(), -- 2.44.1