more security fixes

This commit is contained in:
Michael 2017-02-04 19:29:03 -05:00
parent f445ab5e11
commit dbae223e1e

View file

@ -110,6 +110,7 @@ namespace ShiftOS.Server
var save_obj = JsonConvert.DeserializeObject<Save>(File.ReadAllText(save));
if (save_obj.PasswordHashed == false)
save_obj.Password = Encryption.Encrypt(save_obj.Password);
File.WriteAllText(save, JsonConvert.SerializeObject(save_obj, Formatting.Indented));
}
if (!Directory.Exists("saves"))