mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-16 20:32:21 +01:00
11 lines
333 B
JavaScript
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('/');
|
|
}
|
|
]);
|