Skip to content

Commit

Permalink
Update user query
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Jan 29, 2025
1 parent de5b914 commit 2820055
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Infrastructure.EntityFramework/Repositories/UserRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,17 @@ public async Task UpdateUserKeyAndEncryptedDataAsync(Core.Entities.User user,

entity.SecurityStamp = user.SecurityStamp;
entity.Key = user.Key;

entity.Kdf = user.Kdf;
entity.KdfIterations = user.KdfIterations;
entity.KdfMemory = user.KdfMemory;
entity.KdfParallelism = user.KdfParallelism;

Check warning on line 177 in src/Infrastructure.EntityFramework/Repositories/UserRepository.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.EntityFramework/Repositories/UserRepository.cs#L174-L177

Added lines #L174 - L177 were not covered by tests

entity.Email = user.Email;

Check warning on line 179 in src/Infrastructure.EntityFramework/Repositories/UserRepository.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.EntityFramework/Repositories/UserRepository.cs#L179

Added line #L179 was not covered by tests

entity.MasterPassword = user.MasterPassword;
entity.MasterPasswordHint = user.MasterPasswordHint;

Check warning on line 182 in src/Infrastructure.EntityFramework/Repositories/UserRepository.cs

View check run for this annotation

Codecov / codecov/patch

src/Infrastructure.EntityFramework/Repositories/UserRepository.cs#L181-L182

Added lines #L181 - L182 were not covered by tests

entity.PrivateKey = user.PrivateKey;
entity.LastKeyRotationDate = user.LastKeyRotationDate;
entity.AccountRevisionDate = user.AccountRevisionDate;
Expand Down

0 comments on commit 2820055

Please sign in to comment.