1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-23 16:38:45 +01:00

make sure key is generated on self host create

This commit is contained in:
Kyle Spearrin 2017-08-22 08:37:07 -04:00
parent 671e9ccb1c
commit 2c2d08c7cc

View File

@ -58,6 +58,8 @@
};
$scope.submit = function (model, form) {
var shareKeyCt = cryptoService.makeShareKeyCt();
if ($scope.selfHosted) {
var fileEl = document.getElementById('file');
var files = fileEl.files;
@ -73,8 +75,6 @@
$scope.submitPromise = apiService.organizations.postLicense(fd).$promise.then(finalizeCreate);
}
else {
var shareKeyCt = cryptoService.makeShareKeyCt();
if (model.plan === 'free') {
var freeRequest = {
name: model.name,