Files
meanTorrent/modules/users/client/controllers/settings/settings.client.controller.js
2014-11-10 23:12:33 +02:00

11 lines
333 B
JavaScript

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