aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Server
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-04 19:29:03 -0500
committerMichael <[email protected]>2017-02-04 19:29:08 -0500
commitdbae223e1ead0da4ba2aa6f38066048be9292274 (patch)
tree3ed1c3b945d920e2a1a3fc5c21d60f0d6912f432 /ShiftOS.Server
parentf445ab5e1184b58bdb5c444bc595bfe2b0602086 (diff)
downloadshiftos_thereturn-dbae223e1ead0da4ba2aa6f38066048be9292274.tar.gz
shiftos_thereturn-dbae223e1ead0da4ba2aa6f38066048be9292274.tar.bz2
shiftos_thereturn-dbae223e1ead0da4ba2aa6f38066048be9292274.zip
more security fixes
Diffstat (limited to 'ShiftOS.Server')
-rw-r--r--ShiftOS.Server/Program.cs1
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"))