diff --git a/app/sprinkles/account/src/Authenticate/Authenticator.php b/app/sprinkles/account/src/Authenticate/Authenticator.php index 0ce3eb7ff..8eace3857 100644 --- a/app/sprinkles/account/src/Authenticate/Authenticator.php +++ b/app/sprinkles/account/src/Authenticate/Authenticator.php @@ -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; }