DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

03088068c98d75abee6b56f42bf58e14b1cbe87d — Jonni Liljamo 1 year, 9 months ago fc939d5
feat(client): revamp CfgUser
1 files changed, 3 insertions(+), 9 deletions(-)

M client/src/cfg/mod.rs
M client/src/cfg/mod.rs => client/src/cfg/mod.rs +3 -9
@@ 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(),
        }
    }
}