mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 23:11:54 +00:00
Added settings model, added settings migration, added LDAP salted hashes
This commit is contained in:
19
src/Models/AdminSettingsModel.cs
Normal file
19
src/Models/AdminSettingsModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Security.Cryptography;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Berufsschule_HAM.Models;
|
||||
|
||||
public class AdminSettingsModel
|
||||
{
|
||||
public required string DefaultHashAlgorithm { get; set; }
|
||||
public int MaxDownloadableUserImageSize { get; set; }
|
||||
public required string BarcodeType { get; set; }
|
||||
public required string BarcodeText { get; set; }
|
||||
public required Dictionary<string, Preset> Presets { get; set; }
|
||||
public HashAlgorithm? hashAlgorithm;
|
||||
}
|
||||
|
||||
public class Preset
|
||||
{
|
||||
public required Dictionary<string, string> Attribute { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user