M sdbclient/src/cfg/mod.rs => sdbclient/src/cfg/mod.rs +6 -0
@@ 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
M sdbclient/src/main.rs => sdbclient/src/main.rs +3 -0
@@ 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(),