Merge pull request #2855 from mRemoteNG/copilot/fix-login-name-display-issue

Fix missing Username field for HTTP and HTTPS protocols
This commit is contained in:
Dimitrij
2025-10-07 17:00:27 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -203,7 +203,7 @@ namespace mRemoteNG.Connection
[LocalizedAttributes.LocalizedCategory(nameof(Language.Connection), 2),
LocalizedAttributes.LocalizedDisplayName(nameof(Language.Username)),
LocalizedAttributes.LocalizedDescription(nameof(Language.PropertyDescriptionUsername)),
AttributeUsedInProtocol(ProtocolType.RDP, ProtocolType.SSH1, ProtocolType.SSH2)]
AttributeUsedInProtocol(ProtocolType.RDP, ProtocolType.SSH1, ProtocolType.SSH2, ProtocolType.HTTP, ProtocolType.HTTPS)]
public virtual string Username
{
get => GetPropertyValue("Username", _username);

View File

@@ -318,6 +318,7 @@ namespace mRemoteNGTests.UI.Window.ConfigWindowTests
case ProtocolType.HTTPS:
expectedProperties.AddRange(new []
{
nameof(ConnectionInfo.Username),
nameof(ConnectionInfo.Password),
nameof(ConnectionInfo.Port),
nameof(ConnectionInfo.RenderingEngine),