diff options
| author | Michael <[email protected]> | 2017-02-05 10:57:47 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-05 10:57:47 -0500 |
| commit | ae7553fa95bd78178c02fac11cf33ea8e0d69cfb (patch) | |
| tree | 13d673bc3ea0ad27f9c4cc1756f0a79b9773659e /ShiftOS.Server | |
| parent | 19b13528f6e4ecbef8aaca92d6bdcf7d23d42838 (diff) | |
| download | shiftos_thereturn-ae7553fa95bd78178c02fac11cf33ea8e0d69cfb.tar.gz shiftos_thereturn-ae7553fa95bd78178c02fac11cf33ea8e0d69cfb.tar.bz2 shiftos_thereturn-ae7553fa95bd78178c02fac11cf33ea8e0d69cfb.zip | |
Stop hashing passwords - we encrypt saves now
Diffstat (limited to 'ShiftOS.Server')
| -rw-r--r-- | ShiftOS.Server/Program.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ShiftOS.Server/Program.cs b/ShiftOS.Server/Program.cs index 192b497..4979546 100644 --- a/ShiftOS.Server/Program.cs +++ b/ShiftOS.Server/Program.cs @@ -105,14 +105,7 @@ namespace ShiftOS.Server /// <param name="args">The command-line arguments.</param> public static void Main(string[] args) { - foreach(var save in Directory.GetFiles("saves")) - { - 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")) { Directory.CreateDirectory("saves"); |
