mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
Generate a new security token per install Pt.1, Pt.2 = new Role System
This commit is contained in:
parent
100336b3fc
commit
910fd34445
9 changed files with 42 additions and 32 deletions
15
src/Ombi.Helpers/StartupSingleton.cs
Normal file
15
src/Ombi.Helpers/StartupSingleton.cs
Normal 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; }
|
||||
}
|
||||
}
|
|
@ -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; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue