1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

make keypair on login if missing

This commit is contained in:
Kyle Spearrin
2018-07-03 12:06:01 -04:00
parent 3454d93fef
commit af43232567
6 changed files with 36 additions and 16 deletions

View File

@@ -0,0 +1,9 @@
export class KeysRequest {
publicKey: string;
encryptedPrivateKey: string;
constructor(publicKey: string, encryptedPrivateKey: string) {
this.publicKey = publicKey;
this.encryptedPrivateKey = encryptedPrivateKey;
}
}

View File

@@ -1,10 +1,12 @@
import { KeysRequest } from './keysRequest';
export class RegisterRequest {
name: string;
email: string;
masterPasswordHash: string;
masterPasswordHint: string;
key: string;
keys: RegisterKeysRequest;
keys: KeysRequest;
token: string;
organizationUserId: string;
@@ -16,13 +18,3 @@ export class RegisterRequest {
this.key = key;
}
}
export class RegisterKeysRequest {
publicKey: string;
encryptedPrivateKey: string;
constructor(publicKey: string, encryptedPrivateKey: string) {
this.publicKey = publicKey;
this.encryptedPrivateKey = encryptedPrivateKey;
}
}