Skip to content

Commit fc7cc1b

Browse files
claudeaXenDeveloper
authored andcommitted
fix(sso): 🐛 confirm missing emails by link, fix button contrast and logos
- Replace the six-digit code with an emailed confirmation link, matching VitNode's existing email verification. The link works for 30 minutes, once, and only in the browser that started the sign-in (prevents account pre-hijacking); a link opened elsewhere explains why. - Rework the pending table (confirmHash/confirmExpiresAt/...) and regenerate the unreleased migration. - Reddit and GitLab become neutral buttons with their colored mark, Kick uses its black and green, Slack gets its four-color logo, so no button label ends up dark-on-color. - Center the "Check your email" state, add a mail icon to the email input and icons to "Send a new link" and "Use a different email". - Update docs and screenshots for the link flow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S9WHKDMZd6SGLUjdYbi4hT
1 parent 2239b20 commit fc7cc1b

51 files changed

Lines changed: 4523 additions & 2926 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/api/migrations/20261023190631_sso_attempts_and_pending/migration.sql renamed to apps/api/migrations/20261030153537_sso_attempts_and_pending/migration.sql

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ CREATE TABLE "core_sso_pending" (
1818
"providerUsername" varchar(255),
1919
"profile" jsonb,
2020
"email" varchar(255),
21-
"codeHash" varchar(64),
22-
"codeExpiresAt" timestamp,
23-
"codeAttempts" integer DEFAULT 0 NOT NULL,
24-
"codeSends" integer DEFAULT 0 NOT NULL,
25-
"codeSentAt" timestamp,
21+
"confirmHash" varchar(64),
22+
"confirmExpiresAt" timestamp,
23+
"confirmSends" integer DEFAULT 0 NOT NULL,
24+
"confirmSentAt" timestamp,
2625
"createdAt" timestamp DEFAULT now() NOT NULL,
2726
"expiresAt" timestamp NOT NULL
2827
);

0 commit comments

Comments
 (0)