mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 13:52:20 +00:00
feat(admin): quiet reminder while public registration is open
Registration stays open after the first admin so a household can be invited, but on an internet-exposed instance that means anyone who can reach the URL can sign up — and nothing prompted the admin to close it. Surface a muted hint under the registration toggle whenever it is open (no behaviour change), and note the reality in getting-started's first-user section.
This commit is contained in:
1 parent
80bbf2ba3b
commit
451946b4fa
8 files changed
+21
-2
No files matched your search
@@ -96,6 +96,19 @@ export function GeneralSettingsSection() {
|
||||
disabled={updateSettings.isPending}
|
||||
/>
|
||||
|
||||
{/* Honest nudge: registration stays open after the first admin so a
|
||||
household can be invited, but on an internet-exposed instance that
|
||||
means anyone who can reach the URL can sign up. Surface a quiet
|
||||
reminder while it is open — no behaviour change, just a signal. */}
|
||||
{(settings?.registrationEnabled ?? true) && (
|
||||
<p
|
||||
data-slot="registration-open-hint"
|
||||
className="text-muted-foreground -mt-2 text-xs"
|
||||
>
|
||||
{t("admin.registrationOpenHint")}
|
||||
</p>
|
||||
)}
|
||||
|
||||
{/* v1.23 — instance-wide "require a second factor" policy. Every
|
||||
account without an active factor is sent to forced enrollment after
|
||||
sign-in. This is a web-session nudge, not an API wall: direct API /
|
||||
|
||||
Reference in new issue
Block a user