- Worked th error layout

- Added some picto for the error views
- Bugfixes
This commit is contained in:
Dave Mc Nicoll committed 2021-08-27 18:06:15 +00:00
1 parent 421024f260
commit fd693fc8fc
15 files changed
+101 -18

No files matched your search

+11 -1
View File
@@ -24,7 +24,7 @@ return [
SecurityHandler::class => create(SecurityHandler::class)->constructor(function() {
return new RedirectResponse(getenv("URL_BASE")."/connexion");
}),
}, get('authentication.unauthorize')),
'authentication.error' => function($c, Picea $picea) {
return function($message) use ($picea) {
@@ -36,6 +36,16 @@ return [
};
},
'authentication.unauthorize' => function($c, Picea $picea) {
return function($message) use ($picea) {
return new HtmlResponse($picea->renderHtml('lean/error/401', [
'title' => "",
'subtitle' => "",
'message' => $message,
]));
};
},
EmailConfiguration::class => function($c) {
$email = new EmailConfiguration( EmailConfiguration::AUTH_TYPE_SMTP );
$email->smtpHost = getenv('SMTP_HOST');
View File
Whitespace-only changes.
View File
Whitespace-only changes.