mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #18582 from owncloud/be-consistent
Remove last occurence of `forcessl`
This commit is contained in:
commit
67a982bf85
1 changed files with 2 additions and 2 deletions
|
|
@ -297,8 +297,8 @@ class Session implements IUserSession, Emitter {
|
|||
* Remove cookie for "remember username"
|
||||
*/
|
||||
public function unsetMagicInCookie() {
|
||||
//TODO: DI for cookies and OC_Config
|
||||
$secureCookie = \OC_Config::getValue('forcessl', false);
|
||||
//TODO: DI for cookies and IRequest
|
||||
$secureCookie = \OC::$server->getRequest()->getServerProtocol() === 'https';
|
||||
|
||||
unset($_COOKIE["oc_username"]); //TODO: DI
|
||||
unset($_COOKIE["oc_token"]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue