humanmade / humanmade/Mercator

Unable to login if single sign-on is disabled

Open
#48 21 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
527
Forks
61
PR merge metrics
No merged PRs in 30d

Description

Whenever I disable the single sign on through the filter

```
add_filter( 'mercator.sso.enabled', '__return_false' );
```

I tracked down the cause of this to be the fact that the COOKIE_DOMAIN isn't defined as including something like

```
$dm_domain = $_SERVER[ 'HTTP_HOST' ];
define( 'COOKIE_DOMAIN', $dm_domain );
```

allows it to work again.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.