Skip to content

Commit

Permalink
Merge pull request linnovate#1273 from rjVapes/fixes/passport-redirect
Browse files Browse the repository at this point in the history
Update for Angular 1.4, fixes linnovate#1262
  • Loading branch information
liorkesos committed Jul 25, 2015
2 parents 7cad918 + 8f649a3 commit 722f39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/users/public/services/meanUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ angular.module('mean.users').factory('MeanUser', [ '$rootScope', '$http', '$loca
var encodedProfile = decodeURI(b64_to_utf8(response.token.split('.')[1]));
var payload = JSON.parse(encodedProfile);
this.user = payload;
var destination = $cookies.redirect;
var destination = $cookies.get('redirect');
if (this.user.roles.indexOf('admin') !== -1) this.isAdmin = true;
$rootScope.$emit('loggedin');
if (destination) {
Expand Down

0 comments on commit 722f39c

Please sign in to comment.