Permalink
Browse files

Merge pull request #1273 from rjVapes/fixes/passport-redirect

Update for Angular 1.4, fixes linnovate/mean#1262
  • Loading branch information...
2 parents 7cad918 + 8f649a3 commit 722f39c45c6793e83f60108ae0e1066a482fd8f9 @liorkesos liorkesos committed Jul 25, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/core/users/public/services/meanUser.js
@@ -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) {

0 comments on commit 722f39c

Please sign in to comment.