Generate a new security token per install Pt.1, Pt.2 = new Role System

This commit is contained in:
Jamie Rees 2020-10-26 20:00:39 +00:00
commit 910fd34445
9 changed files with 42 additions and 32 deletions

View file

@ -0,0 +1,15 @@
namespace Ombi.Helpers
{
public class StartupSingleton
{
private static StartupSingleton instance;
private StartupSingleton() { }
public static StartupSingleton Instance => instance ?? (instance = new StartupSingleton());
public string StoragePath { get; set; }
public string SecurityKey { get; set; }
}
}

View file

@ -1,13 +0,0 @@
namespace Ombi.Helpers
{
public class StoragePathSingleton
{
private static StoragePathSingleton instance;
private StoragePathSingleton() { }
public static StoragePathSingleton Instance => instance ?? (instance = new StoragePathSingleton());
public string StoragePath { get; set; }
}
}