mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 09:46:03 +00:00
Added a new config.php
setting DISABLE_AUTH
to be able to disable authentication / the login screen (closes #246)
This commit is contained in:
@@ -25,7 +25,7 @@ class SessionAuthMiddleware extends BaseMiddleware
|
||||
{
|
||||
$response = $next($request, $response);
|
||||
}
|
||||
elseif (GROCY_IS_DEMO_INSTALL || GROCY_IS_EMBEDDED_INSTALL)
|
||||
elseif (GROCY_IS_DEMO_INSTALL || GROCY_IS_EMBEDDED_INSTALL || GROCY_DISABLE_AUTH)
|
||||
{
|
||||
$user = $sessionService->GetDefaultUser();
|
||||
define('GROCY_AUTHENTICATED', true);
|
||||
|
Reference in New Issue
Block a user