Allow overriding the lockdown message.
This commit is contained in:
parent
30c491ec80
commit
782380f51f
2 changed files with 4 additions and 2 deletions
|
@ -293,7 +293,9 @@ MIG;
|
|||
|
||||
if (!$misuzuBypassLockdown && boolval(config_get_default(false, 'Auth', 'lockdown'))) {
|
||||
http_response_code(503);
|
||||
echo tpl_render('auth.lockdown');
|
||||
echo tpl_render('auth.lockdown', [
|
||||
'message' => config_get_default(null, 'Auth', 'lockdown_msg'),
|
||||
]);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{{ container_title('<i class="fas fa-lock fa-fw"></i> Unavailable') }}
|
||||
|
||||
<div class="container__content">
|
||||
The site is currently unavailable, try again later.
|
||||
{{ message|default('The site is currently unavailable, try again later.') }}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Reference in a new issue