mirror of
https://github.com/bitwarden/help
synced 2026-02-28 10:23:21 +00:00
newValue
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user