mirror of
https://github.com/nextcloud/passman.git
synced 2025-01-11 01:39:56 +08:00
17 lines
505 B
JavaScript
17 lines
505 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* @ngdoc function
|
|
* @name passmanApp.controller:MenuCtrl
|
|
* @description
|
|
* # MenuCtrl
|
|
* Controller of the passmanApp
|
|
*/
|
|
angular.module('passmanApp')
|
|
.controller('MenuCtrl', ['$scope', 'VaultService', 'SettingsService', '$location', '$rootScope', function ($scope, VaultService, SettingsService, $location, $rootScope) {
|
|
$scope.logout = function () {
|
|
SettingsService.setSetting('defaultVaultPass', false);
|
|
$rootScope.$broadcast('logout');
|
|
$location.path('/');
|
|
}
|
|
}]);
|