1
0
mirror of https://github.com/bitwarden/help synced 2026-02-28 10:23:21 +00:00
This commit is contained in:
Kyle Spearrin
2017-10-27 20:37:30 -04:00
parent fd9493b8bc
commit 34614792af

View File

@@ -433,14 +433,14 @@
}
},
watch: {
masterKey(newMasterKey) {
masterKey(newValue) {
let self = this;
if (!newMasterKey || !newMasterKey.arr || !self.masterPasswordBuffer) {
if (!newValue || !newValue.arr || !self.masterPasswordBuffer) {
return new ByteData();
}
pbkdf2(newMasterKey.arr.buffer, self.masterPasswordBuffer, 1, 256)
pbkdf2(newValue.arr.buffer, self.masterPasswordBuffer, 1, 256)
.then((masterKeyHash) => {
self.masterKeyHash = masterKeyHash;
});