Merge pull request #1536 from ArthurHoaro/fix/login-private-shaarli
Fix login loop for private instances
This commit is contained in:
commit
ca636b898c
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ protected function checkOpenShaarli(Request $request, Response $response, callab
|
||||||
&& $this->container->conf->get('privacy.force_login')
|
&& $this->container->conf->get('privacy.force_login')
|
||||||
// and the current page isn't already the login page
|
// and the current page isn't already the login page
|
||||||
// and the user is not requesting a feed (which would lead to a different content-type as expected)
|
// and the user is not requesting a feed (which would lead to a different content-type as expected)
|
||||||
&& !in_array($next->getName(), ['login', 'atom', 'rss'], true)
|
&& !in_array($next->getName(), ['login', 'processLogin', 'atom', 'rss'], true)
|
||||||
) {
|
) {
|
||||||
throw new UnauthorizedException();
|
throw new UnauthorizedException();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue