Added a new config.php setting DISABLE_AUTH to be able to disable authentication / the login screen (closes #246)

This commit is contained in:
Bernd Bestel
2019-07-06 18:29:18 +02:00
parent 8c205941c7
commit 09b23847b5
5 changed files with 16 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ class ApiKeyAuthMiddleware extends BaseMiddleware
$route = $request->getAttribute('route');
$routeName = $route->getName();
if (GROCY_IS_DEMO_INSTALL || GROCY_IS_EMBEDDED_INSTALL)
if (GROCY_IS_DEMO_INSTALL || GROCY_IS_EMBEDDED_INSTALL || GROCY_DISABLE_AUTH)
{
define('GROCY_AUTHENTICATED', true);
$response = $next($request, $response);