mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Added a cryptography service to encrypt protected information (unused atm)
Corrected a bug when deleting recycle bin
This commit is contained in:
@@ -10,16 +10,16 @@ namespace ModernKeePass.Application.Parameters.Queries.GetCiphers
|
||||
{
|
||||
public class GetCiphersQueryHandler: IRequestHandler<GetCiphersQuery, IEnumerable<CipherVm>>
|
||||
{
|
||||
private readonly ICryptographyClient _cryptography;
|
||||
private readonly IDatabaseSettingsProxy _databaseSettings;
|
||||
|
||||
public GetCiphersQueryHandler(ICryptographyClient cryptography)
|
||||
public GetCiphersQueryHandler(IDatabaseSettingsProxy databaseSettings)
|
||||
{
|
||||
_cryptography = cryptography;
|
||||
_databaseSettings = databaseSettings;
|
||||
}
|
||||
|
||||
public IEnumerable<CipherVm> Handle(GetCiphersQuery message)
|
||||
{
|
||||
return _cryptography.Ciphers.Select(c => new CipherVm
|
||||
return _databaseSettings.Ciphers.Select(c => new CipherVm
|
||||
{
|
||||
Id = c.Id,
|
||||
Name = c.Name
|
||||
|
Reference in New Issue
Block a user