mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
[PM-21652] Notify At Risk Ciphers to change passwords (#14785)
This commit is contained in:
@@ -144,8 +144,10 @@ export class CriticalApplicationsComponent implements OnInit {
|
|||||||
const apps = this.dataSource.data;
|
const apps = this.dataSource.data;
|
||||||
const cipherIds = apps
|
const cipherIds = apps
|
||||||
.filter((_) => _.atRiskPasswordCount > 0)
|
.filter((_) => _.atRiskPasswordCount > 0)
|
||||||
.flatMap((app) => app.atRiskMemberDetails.map((member) => member.cipherId));
|
.flatMap((app) => app.atRiskCipherIds);
|
||||||
|
|
||||||
const distinctCipherIds = Array.from(new Set(cipherIds));
|
const distinctCipherIds = Array.from(new Set(cipherIds));
|
||||||
|
|
||||||
const tasks: CreateTasksRequest[] = distinctCipherIds.map((cipherId) => ({
|
const tasks: CreateTasksRequest[] = distinctCipherIds.map((cipherId) => ({
|
||||||
cipherId: cipherId as CipherId,
|
cipherId: cipherId as CipherId,
|
||||||
type: SecurityTaskType.UpdateAtRiskCredential,
|
type: SecurityTaskType.UpdateAtRiskCredential,
|
||||||
|
|||||||
Reference in New Issue
Block a user