From 1b8cebbfe1e6e994d4b79aa4a589e12b8208130f Mon Sep 17 00:00:00 2001 From: Kit OC5 Date: Wed, 23 Sep 2026 19:49:34 -0400 Subject: [PATCH] branding: friendly invite-only page instead of Gitea's raw Registration is disabled A Windy account with no forge account (registration CLOSED at launch, Grant 09-23) lands on /user/link_account. Override shows invite-only + signed-in name + link to the dashboard; other cases = Gitea 1.24.6 template verbatim. No change to who can register. Orchestrator ask 09-23. Co-Authored-By: Claude Opus 5.5 --- .../templates/user/auth/link_account.tmpl | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 deploy/branding/templates/user/auth/link_account.tmpl diff --git a/deploy/branding/templates/user/auth/link_account.tmpl b/deploy/branding/templates/user/auth/link_account.tmpl new file mode 100644 index 0000000..0cf8f4e --- /dev/null +++ b/deploy/branding/templates/user/auth/link_account.tmpl @@ -0,0 +1,61 @@ +{{/* Windy Git override of Gitea 1.24.6 templates/user/auth/link_account.tmpl. + Forge registration is CLOSED at launch (Grant, 09-23), so a Windy account + with no forge account used to land on Gitea's raw "Registration is disabled" + error. That case now gets a plain invite-only page; every other case is + Gitea's template unchanged (re-diff it on Gitea upgrades). No change to who + can register. */}} +{{if and .DisableRegistration (not .user_exists)}} +{{template "base/head" .}} + +{{template "base/footer" .}} +{{else}} +{{template "base/head" .}} + + +{{template "base/footer" .}} +{{end}}