mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 15:01:56 +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; }
|
||||
}
|
||||
@@ -13,5 +13,6 @@ public class LdapConfig
|
||||
public string UsersOu { get; set; } = "ou=users";
|
||||
public string GroupsOu { get; set; } = "ou=groups";
|
||||
public string MigrationsOu { get; set; } = "ou=migrations";
|
||||
public string SettingsOu { get; set; } = "ou=settings";
|
||||
public int ConnectionRetryCount { get; set; } = 10;
|
||||
}
|
||||
Reference in New Issue
Block a user