Skip to content

Commit ee3083b

Browse files
committed
Fixes UserFrosting Issue #990
This allows the domain to be configured in the uf4-rememberme cookie.
1 parent fb1b721 commit ee3083b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/sprinkles/account/src/Authenticate/Authenticator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ public function __construct(ClassMapper $classMapper, Session $session, Config $
122122
$this->rememberMe->getCookie()->setExpireTime($this->config['remember_me.expire_time']);
123123
}
124124

125+
// Set domain, if specified
126+
if ($this->config->has('remember_me.domain') && ($this->config->has('remember_me.domain') != null)) {
127+
$this->rememberMe->getCookie()->setDomain($this->config['remember_me.domain']);
128+
}
129+
125130
$this->user = null;
126131
$this->viaRemember = false;
127132
}

0 commit comments

Comments
 (0)