diff options
| author | Michael <[email protected]> | 2017-02-04 19:29:03 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-04 19:29:08 -0500 |
| commit | dbae223e1ead0da4ba2aa6f38066048be9292274 (patch) | |
| tree | 3ed1c3b945d920e2a1a3fc5c21d60f0d6912f432 /ShiftOS.Server/Program.cs | |
| parent | f445ab5e1184b58bdb5c444bc595bfe2b0602086 (diff) | |
| download | shiftos_thereturn-dbae223e1ead0da4ba2aa6f38066048be9292274.tar.gz shiftos_thereturn-dbae223e1ead0da4ba2aa6f38066048be9292274.tar.bz2 shiftos_thereturn-dbae223e1ead0da4ba2aa6f38066048be9292274.zip | |
more security fixes
Diffstat (limited to 'ShiftOS.Server/Program.cs')
| -rw-r--r-- | ShiftOS.Server/Program.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ShiftOS.Server/Program.cs b/ShiftOS.Server/Program.cs index ee35e16..6a76703 100644 --- a/ShiftOS.Server/Program.cs +++ b/ShiftOS.Server/Program.cs @@ -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")) |
