Skip to content

Commit

Permalink
Changed token variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Domenico Bove committed Jan 11, 2016
1 parent 4fdefef commit e7b8ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/static/js/services/authService.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ angular.module('app').factory('AuthService', function($http, Session, $location,
data: "username="+credentials.username+"&password="+credentials.password+"&grant_type="+credentials.grant_type})
.then(function(res) {
console.log(res);
Session.create(URL, res.data.access_token, credentials.username, true);
Session.create(URL, res.data.value, credentials.username, true);
$location.path("/");
$window.location.reload();
return;
Expand Down

0 comments on commit e7b8ff5

Please sign in to comment.