mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
WIP ViewModelLocator - Messenger and Recent issues
Refactoring Code cleanup
This commit is contained in:
@@ -351,7 +351,7 @@ namespace ModernKeePass.Infrastructure.KeePass
|
||||
private CompositeKey CreateCompositeKey(Credentials credentials)
|
||||
{
|
||||
var compositeKey = new CompositeKey();
|
||||
if (!string.IsNullOrEmpty(credentials.Password)) compositeKey.AddUserKey(new KcpPassword(credentials.Password));
|
||||
if (credentials.Password != null) compositeKey.AddUserKey(new KcpPassword(credentials.Password));
|
||||
if (credentials.KeyFileContents != null)
|
||||
{
|
||||
compositeKey.AddUserKey(new KcpKeyFile(IOConnectionInfo.FromByteArray(credentials.KeyFileContents)));
|
||||
|
Reference in New Issue
Block a user