1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-02 11:45:17 +02:00

Custom registration disable message

This commit is contained in:
Sean Morley 2024-08-24 23:20:50 -04:00
parent 824fbcb42f
commit f237f480df
5 changed files with 7 additions and 5 deletions

View file

@ -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 {

View file

@ -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}