mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-05 19:51:08 +01:00
Merge pull request #377 from sylvainlap/master
Auth service Refactoring to use $window
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
// Authentication service for user variables
|
||||
angular.module('users').factory('Authentication', [
|
||||
function() {
|
||||
var _this = this;
|
||||
|
||||
_this._data = {
|
||||
user: window.user
|
||||
};
|
||||
|
||||
return _this._data;
|
||||
}
|
||||
]);
|
||||
angular.module('users').factory('Authentication', ['$window', function($window) {
|
||||
var auth = {
|
||||
user: $window.user
|
||||
};
|
||||
|
||||
return auth;
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user