Skip to content

[SITE] feat(site): add accounts with Discord login - #1197

Draft
ugcodrr wants to merge 48 commits into
feat/site-guild-comparefrom
feat/site-accounts
Draft

ugcodrr wants to merge 48 commits into
feat/site-guild-comparefrom
feat/site-accounts

Conversation

@ugcodrr

@ugcodrr ugcodrr commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Description: The site had no accounts, so there was no way to claim a profile or keep more than one together.

  1. Logging in with Discord links the Minecraft account you verified with the bot as your primary, and changing the primary changes who you're verified as with the bot.
  2. The bot's /verify and /unverify update accounts right away, and a new /verify moves just that profile and tells the account it left.
  3. Unlinking your last profile also unverifies you with the bot.
  4. The header shows your head when you're logged in, filled in by the browser so cached pages stay the same for everyone.
  5. Every POST to the site has its origin checked, not just logout.
  6. Logging in asks for the same Turnstile check as updating a player, and each login link works once, so a script can't send fake login codes to Discord and set off the cooldown that blocks everyone's login.
  7. On a phone, the account link sits in the opened search row on every page with a header search, where the search button takes the end of the logo row.
  8. The privacy page gets a Site Accounts section for the Discord user ID, linked profiles and the login cookies, and says a login sends your IP address to Turnstile.

Login stays off until site.discordLogin has the Discord app's client ID and secret.

Still to decide before launch: the site doesn't touch the support server's member role, so unlinking your last profile unverifies you but you keep the role.

Conflicts with #1265, which moves config to @statsify/config. If that lands first, the site.discordLogin keys move to packages/config/src/index.ts.

Stacked on #1147.

Testing:

  1. Log in on /account, and the account you verified with the bot shows as primary with your head in the header.
  2. /verify a second account with the bot and press Check Again, and it shows up in the switcher as the new primary.

@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
statsify Ignored Ignored Nov 12, 2026 9:41pm UTC

@ugcodrr
ugcodrr removed this pull request from stack #1131 November 12, 2026 03:15
@vercel

vercel Bot commented Nov 12, 2026

Copy link
Copy Markdown

Deployment failed for project statsify with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/statsify-net?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

Deployment failed for project statsify with the following error:

Resource is limited - try again in 1 day (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/statsify-net?upgradeToPro=build-rate-limit

# Conflicts:
#	apps/api/src/site/site.module.ts
#	apps/api/src/site/site.service.ts
#	apps/site/src/features/player/player-actions.ts
#	packages/contract/src/contract.ts
# Conflicts:
#	apps/site/src/components/header.tsx
# Conflicts:
#	apps/api/src/site/site.service.ts
# Conflicts:
#	apps/api/src/site/site.service.ts
# Conflicts:
#	apps/site/src/components/header.tsx

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant