1
0
mirror of https://github.com/bitwarden/jslib synced 2026-01-09 03:53:18 +00:00

Password reprompt (#357)

This commit is contained in:
Oscar Hinton
2021-04-29 13:31:21 +02:00
committed by GitHub
parent 1eb40a4891
commit a72c8a60c1
16 changed files with 161 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
import { CipherRepromptType } from '../../enums/cipherRepromptType';
import { CipherType } from '../../enums/cipherType';
import { AttachmentData } from './attachmentData';
@@ -33,6 +34,7 @@ export class CipherData {
passwordHistory?: PasswordHistoryData[];
collectionIds?: string[];
deletedDate: string;
reprompt: CipherRepromptType;
constructor(response?: CipherResponse, userId?: string, collectionIds?: string[]) {
if (response == null) {
@@ -53,6 +55,7 @@ export class CipherData {
this.notes = response.notes;
this.collectionIds = collectionIds != null ? collectionIds : response.collectionIds;
this.deletedDate = response.deletedDate;
this.reprompt = response.reprompt;
switch (this.type) {
case CipherType.Login: