mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 20:11:16 +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:
9
app.php
9
app.php
@@ -40,6 +40,15 @@ require_once __DIR__ . '/vendor/autoload.php';
|
||||
require_once GROCY_DATAPATH . '/config.php';
|
||||
require_once __DIR__ . '/config-dist.php'; //For not in own config defined values we use the default ones
|
||||
|
||||
// Definitions for disabled authentication mode
|
||||
if (GROCY_DISABLE_AUTH === true)
|
||||
{
|
||||
if (!defined('GROCY_USER_ID'))
|
||||
{
|
||||
define('GROCY_USER_ID', 1);
|
||||
}
|
||||
}
|
||||
|
||||
// Setup base application
|
||||
$appContainer = new \Slim\Container([
|
||||
'settings' => [
|
||||
|
Reference in New Issue
Block a user