1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 07:43:16 +00:00

update key and verify email notification

This commit is contained in:
Kyle Spearrin
2017-07-01 22:44:10 -04:00
parent 7ff79a0fdd
commit 5d81ed6a96
7 changed files with 146 additions and 8 deletions

View File

@@ -1,7 +1,8 @@
angular
.module('bit.global')
.controller('mainController', function ($scope, $state, authService, appSettings, toastr, $window, $document) {
.controller('mainController', function ($scope, $state, authService, appSettings, toastr, $window, $document,
cryptoService, $uibModal) {
var vm = this;
vm.bodyClass = '';
vm.usingControlSidebar = vm.openControlSidebar = false;
@@ -30,6 +31,7 @@ angular
});
$scope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) {
vm.usingEncKey = !!cryptoService.getEncKey();
vm.searchVaultText = null;
if (toState.data.bodyClass) {
@@ -68,6 +70,18 @@ angular
$scope.$broadcast('organizationGroupsAdd');
};
$scope.updateKey = function () {
$uibModal.open({
animation: true,
templateUrl: 'app/settings/views/settingsUpdateKey.html',
controller: 'settingsUpdateKeyController'
});
};
$scope.verifyEmail = function () {
// TODO: send email api
};
// Append dropdown menu somewhere else
var bodyScrollbarWidth,
appendedDropdownMenu,