We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7cad918 + 8f649a3 commit 722f39cCopy full SHA for 722f39c
packages/core/users/public/services/meanUser.js
@@ -63,7 +63,7 @@ angular.module('mean.users').factory('MeanUser', [ '$rootScope', '$http', '$loca
63
var encodedProfile = decodeURI(b64_to_utf8(response.token.split('.')[1]));
64
var payload = JSON.parse(encodedProfile);
65
this.user = payload;
66
- var destination = $cookies.redirect;
+ var destination = $cookies.get('redirect');
67
if (this.user.roles.indexOf('admin') !== -1) this.isAdmin = true;
68
$rootScope.$emit('loggedin');
69
if (destination) {
0 commit comments