Zentrales PW

This commit is contained in:
2026-04-14 10:05:59 +02:00
parent cf20bd94d0
commit df90a4a172
7 changed files with 235 additions and 2 deletions
@@ -7,4 +7,10 @@ public class ExportSettings
public int TimerHour { get; set; } = 3;
public int TimerMinute { get; set; }
public bool TimerEnabled { get; set; } = true;
public string SapUsername { get; set; } = string.Empty;
public string SapPassword { get; set; } = string.Empty;
public string Bi1Username { get; set; } = string.Empty;
public string Bi1Password { get; set; } = string.Empty;
public string SageUsername { get; set; } = string.Empty;
public string SagePassword { get; set; } = string.Empty;
}
+4 -1
View File
@@ -97,7 +97,10 @@ public class HanaServer
if (string.IsNullOrWhiteSpace(value))
return string.Empty;
if (Uri.TryCreate(value, UriKind.Absolute, out var uri))
// Treat plain "host:port" values as HANA ServerNode, not as a URI scheme.
// Only parse as URI when an explicit scheme is present.
if (value.Contains("://", StringComparison.Ordinal) &&
Uri.TryCreate(value, UriKind.Absolute, out var uri))
{
return uri.IsDefaultPort ? uri.Host : $"{uri.Host}:{uri.Port}";
}
+4
View File
@@ -24,5 +24,9 @@ public class Site
[Required]
public string SourceSystem { get; set; } = "SAP";
public string UsernameOverride { get; set; } = string.Empty;
public string PasswordOverride { get; set; } = string.Empty;
public bool IsActive { get; set; } = true;
}