1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-22 21:51:22 +01:00

[PS-1938] Fix EF Password Reprompt (#2468)

* Return Reprompt Property

* Return from CipherDetails
This commit is contained in:
Justin Baur 2022-12-04 22:15:12 -05:00 committed by GitHub
parent c39736c583
commit 9ce37e1eb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -345,6 +345,7 @@ public class CipherRepository : Repository<Core.Entities.Cipher, Cipher, Guid>,
Favorite = c.Favorite,
FolderId = c.FolderId,
Edit = true,
Reprompt = c.Reprompt,
ViewPassword = true,
OrganizationUseTotp = false,
};

View File

@ -26,6 +26,7 @@ public class CipherDetailsQuery : IQuery<CipherDetails>
CreationDate = c.CreationDate,
RevisionDate = c.RevisionDate,
DeletedDate = c.DeletedDate,
Reprompt = c.Reprompt,
Favorite = _userId.HasValue && c.Favorites != null && c.Favorites.Contains($"\"{_userId}\":true"),
FolderId = (_ignoreFolders || !_userId.HasValue || c.Folders == null || !c.Folders.Contains(_userId.Value.ToString())) ?
null :

View File

@ -69,6 +69,7 @@ public class UserCipherDetailsQuery : IQuery<CipherDetails>
Favorite = _userId.HasValue && c.Favorites != null && c.Favorites.Contains($"\"{_userId}\":true"),
FolderId = GetFolderId(_userId, c),
Edit = true,
Reprompt = c.Reprompt,
ViewPassword = true,
OrganizationUseTotp = false,
});