mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 19:37:12 +00:00
Refactor Authentication and add proxy-authentication (#921)
* Refactor Authentication-Middlewares * Add Proxy-Authentication * Disable "Logout" & "Manage Users" when using ProxyAuth * Review Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
committed by
GitHub
parent
5b475d9307
commit
d60d981fd1
2
app.php
2
app.php
@@ -19,6 +19,7 @@ require_once __DIR__ . '/config-dist.php'; // For not in own config defined valu
|
||||
if ((GROCY_MODE === 'dev' || GROCY_MODE === 'demo' || GROCY_MODE === 'prerelease') && !defined('GROCY_USER_ID'))
|
||||
{
|
||||
define('GROCY_USER_ID', 1);
|
||||
define('GROCY_SHOW_AUTH_VIEWS', true);
|
||||
}
|
||||
|
||||
// Definitions for disabled authentication mode
|
||||
@@ -28,6 +29,7 @@ if (GROCY_DISABLE_AUTH === true)
|
||||
{
|
||||
define('GROCY_USER_ID', 1);
|
||||
}
|
||||
define('GROCY_SHOW_AUTH_VIEWS', false);
|
||||
}
|
||||
|
||||
// Setup base application
|
||||
|
Reference in New Issue
Block a user