Skip to content

Commit

Permalink
Minor cookies fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gorco committed Aug 26, 2016
1 parent 4ddc57b commit df40520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/public/js/controllers/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ angular.module('loginApp', ['ngStorage', 'ngCookies'])
$http.post(CONSTANTS.APIPATH + '/login', $scope.user).success(function (data) {
$localStorage.$reset();
$scope.$storage.user = data.user;
$cookies.put('rageUserCookie', data.user.token);
$cookies.put('rageUserCookie', data.user.token, {path : '/'});

$http.get(CONSTANTS.APIPATH + '/users/' + data.user._id + '/roles').success(function (data) {
$scope.$storage.user.roles = data;
Expand Down

0 comments on commit df40520

Please sign in to comment.