Files
meanTorrent/modules/users/client/controllers/settings/settings.client.controller.js
2015-07-09 14:23:31 -04:00

11 lines
301 B
JavaScript

'use strict';
angular.module('users').controller('SettingsController', ['$scope', '$location', 'Authentication',
function($scope, $location, Authentication) {
$scope.user = Authentication.user;
// If user is not signed in then redirect back home
if (!$scope.user) $location.path('/');
}
]);