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:
parent
c39736c583
commit
9ce37e1eb5
@ -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,
|
||||
};
|
||||
|
@ -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 :
|
||||
|
@ -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,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user