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:
parent
824fbcb42f
commit
f237f480df
5 changed files with 7 additions and 5 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue