From d18b11d831b08daa811ef098245d529ee749d17c Mon Sep 17 00:00:00 2001 From: Songtronix Date: Wed, 24 Jun 2020 10:26:16 +0200 Subject: [PATCH] fix: do not store the password in the settings --- voxygen/src/menu/main/mod.rs | 1 - voxygen/src/settings.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/voxygen/src/menu/main/mod.rs b/voxygen/src/menu/main/mod.rs index 071b4a9a09..c4d6817747 100644 --- a/voxygen/src/menu/main/mod.rs +++ b/voxygen/src/menu/main/mod.rs @@ -258,7 +258,6 @@ fn attempt_login( ) { let mut net_settings = &mut global_state.settings.networking; net_settings.username = username.clone(); - net_settings.password = password.clone(); if !net_settings.servers.contains(&server_address) { net_settings.servers.push(server_address.clone()); } diff --git a/voxygen/src/settings.rs b/voxygen/src/settings.rs index f496c0c23c..d888c9f083 100644 --- a/voxygen/src/settings.rs +++ b/voxygen/src/settings.rs @@ -506,7 +506,6 @@ impl Default for GameplaySettings { #[serde(default)] pub struct NetworkingSettings { pub username: String, - pub password: String, pub servers: Vec, pub default_server: usize, pub trusted_auth_servers: HashSet, @@ -516,7 +515,6 @@ impl Default for NetworkingSettings { fn default() -> Self { Self { username: "Username".to_string(), - password: String::default(), servers: vec!["server.veloren.net".to_string()], default_server: 0, trusted_auth_servers: ["https://auth.veloren.net"]