Zentrales PW
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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}";
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user