- Worked th error layout
- Added some picto for the error views - Bugfixes
This commit is contained in:
1 parent
421024f260
commit
fd693fc8fc
15 files changed
+101
-18
No files matched your search
@@ -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');
|
||||
|
||||
Vendored
Whitespace-only changes.
Whitespace-only changes.
Reference in new issue
Block a user