diff --git a/LANCommander/Services/SettingService.cs b/LANCommander/Services/SettingService.cs index 548f565..c5170f6 100644 --- a/LANCommander/Services/SettingService.cs +++ b/LANCommander/Services/SettingService.cs @@ -22,7 +22,28 @@ namespace LANCommander.Services return deserializer.Deserialize(contents); } else - return new LANCommanderSettings(); + { + var settings = new LANCommanderSettings + { + Port = 1337, + Beacon = true, + DatabaseConnectionString = "Data Source=LANCommander.db;Cache=Shared", + Authentication = new LANCommanderAuthenticationSettings + { + TokenSecret = Guid.NewGuid().ToString(), + TokenLifetime = 30, + PasswordRequireNonAlphanumeric = false, + PasswordRequireLowercase = false, + PasswordRequireUppercase = false, + PasswordRequireDigit = true, + PasswordRequiredLength = 6 + } + }; + + SaveSettings(settings); + + return settings; + } } public static void SaveSettings(LANCommanderSettings settings)