Implement basic login function; add basic styling
This commit is contained in:
parent
2bb7ea54a2
commit
8be7988d97
12 changed files with 252 additions and 27 deletions
|
|
@ -3,6 +3,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace MailAccountAdmin;
|
||||
|
||||
use MailAccountAdmin\Auth\AuthMiddleware;
|
||||
use Slim\App;
|
||||
use Slim\Views\TwigMiddleware;
|
||||
|
||||
|
|
@ -13,6 +14,7 @@ class Middlewares
|
|||
$displayErrorDetails = $settings->isDebugMode();
|
||||
|
||||
$app->addErrorMiddleware($displayErrorDetails, true, true);
|
||||
$app->add(new AuthMiddleware());
|
||||
$app->add(TwigMiddleware::createFromContainer($app));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue