1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

Organization profile

This commit is contained in:
Kyle Spearrin
2017-03-02 21:51:24 -05:00
parent 492e2e693c
commit 27495d5055
5 changed files with 80 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
angular
.module('bit.settings')
.controller('settingsCreateOrganizationController', function ($scope, apiService, $uibModalInstance, cryptoService,
authService, toastr, $analytics) {
$analytics.eventTrack('settingsCreateOrganizationController', { category: 'Modal' });
$scope.submit = function (model) {
var request = {
masterPasswordHash: cryptoService.hashPassword(model.masterPassword)
};
$scope.submitPromise = apiService.organizations.post(request, function () {
$uibModalInstance.dismiss('cancel');
$analytics.eventTrack('Created Organization');
}).$promise;
};
$scope.close = function () {
$uibModalInstance.dismiss('cancel');
};
});