Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #270 from marklise/master
Browse files Browse the repository at this point in the history
NOBUG: Explicit set of hostname.
  • Loading branch information
marklise authored Sep 28, 2017
2 parents 1ff2adf + 6355325 commit 8a4a67c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/client/services/core.context.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ angular.module('core').factory('ContextService', ['$interval', '$log', '$http',

var currentUserId = Authentication.user ? Authentication.user._id : 0;
var userMatch = $window.application.user === currentUserId;
$cookies.put('loggedIn', currentUserId !== 0);
$cookies.put('loggedIn', currentUserId !== 0, {domain: window.location.hostname});

var result = contextMatch && userMatch;
//$log.debug('ContextService.contextMatch ($cookies.get('context')=' + $cookies.get('context')+', context=' + toContext + ') = ', contextMatch);
Expand Down

0 comments on commit 8a4a67c

Please sign in to comment.