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:
parent
671e9ccb1c
commit
2c2d08c7cc
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user