Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Auth service
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainlap committed Feb 2, 2015
1 parent 90c9ddb commit 9c501db
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions modules/users/client/services/authentication.client.service.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
'use strict';

// Authentication service for user variables
angular.module('users').factory('Authentication', [

function() {
var _this = this;

_this._data = {
user: window.user
angular.module('users').factory('Authentication', ['$window',
function($window) {
var auth = {
user: $window.user
};

return _this._data;
return auth;
}
]);
]);

0 comments on commit 9c501db

Please sign in to comment.