Skip to content

Commit

Permalink
Fixes UserFrosting Issue userfrosting#990
Browse files Browse the repository at this point in the history
This allows the domain to be configured in the uf4-rememberme
cookie.
  • Loading branch information
xrobau committed Jun 4, 2019
1 parent fb1b721 commit ee3083b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/sprinkles/account/src/Authenticate/Authenticator.php
Expand Up @@ -122,6 +122,11 @@ public function __construct(ClassMapper $classMapper, Session $session, Config $
$this->rememberMe->getCookie()->setExpireTime($this->config['remember_me.expire_time']);
}

// Set domain, if specified
if ($this->config->has('remember_me.domain') && ($this->config->has('remember_me.domain') != null)) {
$this->rememberMe->getCookie()->setDomain($this->config['remember_me.domain']);
}

$this->user = null;
$this->viaRemember = false;
}
Expand Down

0 comments on commit ee3083b

Please sign in to comment.