mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-17 01:31:25 +01:00
fixes
This commit is contained in:
parent
d879518233
commit
d4759d4056
@ -138,7 +138,8 @@
|
|||||||
cancelledDate: org.Subscription.CancelledDate,
|
cancelledDate: org.Subscription.CancelledDate,
|
||||||
status: org.Subscription.Status,
|
status: org.Subscription.Status,
|
||||||
cancelled: org.Subscription.Status === 'cancelled',
|
cancelled: org.Subscription.Status === 'cancelled',
|
||||||
markedForCancel: org.Subscription.Status === 'active' && org.Subscription.CancelledDate
|
markedForCancel: (org.Subscription.Status === 'active' || org.Subscription.Status === 'trialing') &&
|
||||||
|
org.Subscription.CancelledDate
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,9 @@
|
|||||||
// User is not using an enc key, let's make them one
|
// User is not using an enc key, let's make them one
|
||||||
$scope.tokenPromise = cipherService.updateKey(_masterPasswordHash, function () {
|
$scope.tokenPromise = cipherService.updateKey(_masterPasswordHash, function () {
|
||||||
return requestToken();
|
return requestToken();
|
||||||
}, processError);
|
}, function (err) {
|
||||||
|
toastr.error('Something went wrong.', 'Oh No!');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -33,9 +33,11 @@
|
|||||||
// User is not using an enc key, let's make them one
|
// User is not using an enc key, let's make them one
|
||||||
$scope.savePromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
$scope.savePromise = cryptoService.hashPassword(model.masterPassword).then(function (hash) {
|
||||||
return cipherService.updateKey(hash);
|
return cipherService.updateKey(hash);
|
||||||
}, processError).then(function () {
|
}).then(function () {
|
||||||
return changePassword(model);
|
return changePassword(model);
|
||||||
}, processError);
|
}, function (err) {
|
||||||
|
toastr.error('Something went wrong.', 'Oh No!');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user