More authentication refactoring to also provide "plugable" credentials handling (references #921, needed for #305)

This commit is contained in:
Bernd Bestel
2020-10-19 18:38:12 +02:00
parent 9f88dd3af3
commit 94214b867a
9 changed files with 81 additions and 52 deletions

View File

@@ -13,9 +13,9 @@ $app->group('', function (RouteCollectorProxy $group) {
$group->get('/barcodescannertesting', '\Grocy\Controllers\SystemController:BarcodeScannerTesting');
// Login routes
$group->get('/login', 'LoginControllerInstance:LoginPage')->setName('login');
$group->post('/login', 'LoginControllerInstance:ProcessLogin')->setName('login');
$group->get('/logout', 'LoginControllerInstance:Logout');
$group->get('/login', '\Grocy\Controllers\LoginController:LoginPage')->setName('login');
$group->post('/login', '\Grocy\Controllers\LoginController:ProcessLogin')->setName('login');
$group->get('/logout', '\Grocy\Controllers\LoginController:Logout');
// Generic entity interaction
$group->get('/userfields', '\Grocy\Controllers\GenericEntityController:UserfieldsList');