mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-06-17 08:40:05 +02:00
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.
8 lines
205 B
JavaScript
8 lines
205 B
JavaScript
'use strict';
|
|
|
|
angular.module('users').controller('SettingsController', ['$scope', '$location', 'Authentication',
|
|
function($scope, $location, Authentication) {
|
|
$scope.user = Authentication.user;
|
|
}
|
|
]);
|