mirror of
https://github.com/bitwarden/browser
synced 2026-02-06 19:53:59 +00:00
19 lines
887 B
TypeScript
19 lines
887 B
TypeScript
// FIXME: Update this file to be type safe and remove this and next line
|
|
// @ts-strict-ignore
|
|
import { EncryptedString } from "@bitwarden/common/key-management/crypto/models/enc-string";
|
|
import { MasterPasswordAuthenticationData, MasterPasswordAuthenticationHash, MasterPasswordUnlockData } from "@bitwarden/common/key-management/master-password/types/master-password.types";
|
|
|
|
import { EmailTokenRequest } from "./email-token.request";
|
|
|
|
export class EmailRequest extends EmailTokenRequest {
|
|
newMasterPasswordHash: MasterPasswordAuthenticationHash;
|
|
token: string
|
|
key: EncryptedString;
|
|
|
|
constructor(authenticationData: MasterPasswordAuthenticationData, unlockData: MasterPasswordUnlockData) {
|
|
super();
|
|
this.masterPasswordHash = authenticationData.masterPasswordAuthenticationHash;
|
|
this.newMasterPasswordHash = authenticationData.masterPasswordAuthenticationHash;
|
|
}
|
|
}
|