Authenticacion

This commit is contained in:
2020-04-07 15:37:21 -04:00
parent 2ae6826ff4
commit bca4665721
27 changed files with 378 additions and 34 deletions

View File

@ -17,4 +17,4 @@ $app->group('/admin', function($app) {
}
$app->get('[/]', Admin::class);
});
})->add($app->getContainer()->get(ProVM\NotariaRaby\Common\Middleware\Auth::class));

View File

@ -0,0 +1,7 @@
<?php
use ProVM\NotariaRaby\Common\Controller\Web\Admin\Clave;
$app->group('/clave', function($app) {
$app->get('[/]', Clave::class);
$app->post('[/]', [Clave::class, 'do_edit']);
});

View File

@ -0,0 +1,7 @@
<?php
use ProVM\NotariaRaby\Common\Controller\Web\Admin\Login;
$app->group('/login', function($app) {
$app->get('[/]', Login::class);
$app->post('[/]', [Login::class, 'do_login']);
});