Custom registration disable message
This commit is contained in:
@@ -13,7 +13,8 @@ export const load: PageServerLoad = async (event) => {
|
||||
console.log(is_disabled_json);
|
||||
if (is_disabled_json.is_disabled) {
|
||||
return {
|
||||
is_disabled: true
|
||||
is_disabled: true,
|
||||
message: is_disabled_json.message
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
|
||||
@@ -98,9 +98,7 @@
|
||||
<div class="card card-compact w-96 bg-base-100 shadow-xl p-6 mt-4 mb-4">
|
||||
<article class="text-center">
|
||||
<h1 class="text-4xl font-extrabold mb-6">Signup is disabled for this server.</h1>
|
||||
<p>Please contact the server administrator if you think this is an error.</p>
|
||||
<br />
|
||||
<p>If you are the administrator, users can be registered via the admin site.</p>
|
||||
<p>{data.message}</p>
|
||||
</article>
|
||||
|
||||
{#if errors.message}
|
||||
|
||||
Reference in New Issue
Block a user