Skip to content

Commit

Permalink
Fix UserService
Browse files Browse the repository at this point in the history
  • Loading branch information
LGouellec committed May 4, 2016
1 parent 426c323 commit 1708a4d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions frontend/scripts_angular/Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,13 @@
* changePassword() -> Can change password for current user : TODO
**/
var UserService = function($rootScope, $http, $q, $cookies){
var currentLogin = null;
return {
isConnected: function(){
return this.getToken() != null;
},
getToken: function(){
return $cookies.get('SESSION_ID');
},
getCurrentLogin: function(){
return this.currentLogin;
}
login: function(login, password){
var deferredObject = $q.defer();
var userResult ={
Expand Down

0 comments on commit 1708a4d

Please sign in to comment.