Skip to content

Commit 722f39c

Browse files
committed
Merge pull request #1273 from rjVapes/fixes/passport-redirect
Update for Angular 1.4, fixes #1262
2 parents 7cad918 + 8f649a3 commit 722f39c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/users/public/services/meanUser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ angular.module('mean.users').factory('MeanUser', [ '$rootScope', '$http', '$loca
6363
var encodedProfile = decodeURI(b64_to_utf8(response.token.split('.')[1]));
6464
var payload = JSON.parse(encodedProfile);
6565
this.user = payload;
66-
var destination = $cookies.redirect;
66+
var destination = $cookies.get('redirect');
6767
if (this.user.roles.indexOf('admin') !== -1) this.isAdmin = true;
6868
$rootScope.$emit('loggedin');
6969
if (destination) {

0 commit comments

Comments
 (0)