From ee3083b391dd161831cec0d3d68b0173e8a11ed5 Mon Sep 17 00:00:00 2001 From: Rob Thomas Date: Tue, 4 Jun 2019 10:40:50 +1000 Subject: [PATCH] Fixes UserFrosting Issue #990 This allows the domain to be configured in the uf4-rememberme cookie. --- app/sprinkles/account/src/Authenticate/Authenticator.php | 5 +++++ 1 file changed, 5 insertions(+) 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; }