Files
meanTorrent/modules/users/client/controllers/settings/settings.client.controller.js
Igor Freire 9fc88e6e5b Filter states for which login is required during state change
A state parameter was added for the routes that require user authentication. Now, everytime a statechange occurs, the destination state is checked and user is redirected to signin page if necessary. Note the state parameter is added within `data`, so that nested states can inherent its value.
2015-07-24 16:17:14 -03:00

8 lines
205 B
JavaScript

'use strict';
angular.module('users').controller('SettingsController', ['$scope', '$location', 'Authentication',
function($scope, $location, Authentication) {
$scope.user = Authentication.user;
}
]);