mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
xml cred deserializer now ensures empty strings are used for any missing xml attributes
This commit is contained in:
@@ -21,10 +21,10 @@ namespace mRemoteNG.Config.Serializers
|
||||
var credentials = from element in xdoc.Descendants("Credential")
|
||||
select new CredentialRecord(Guid.Parse(element.Attribute("Id")?.Value))
|
||||
{
|
||||
Title = element.Attribute("Title")?.Value,
|
||||
Username = element.Attribute("Username")?.Value,
|
||||
Title = element.Attribute("Title")?.Value ?? "",
|
||||
Username = element.Attribute("Username")?.Value ?? "",
|
||||
Password = cryptographyProvider.Decrypt(element.Attribute("Password")?.Value, decryptionKey).ConvertToSecureString(),
|
||||
Domain = element.Attribute("Domain")?.Value
|
||||
Domain = element.Attribute("Domain")?.Value ?? ""
|
||||
};
|
||||
return credentials;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user