auth: e-mail + password login with e-mailed password links
Sign-up asks no password: a link goes to the address and the password is set there (also for forgotten passwords), by whoever opens the mailbox. So nobody can register a password for someone else's address, and linking Google or Apple to an account with the same address stays safe. Opening the link confirms the address, ends other sessions and logs in. Sign-up answers alike for registered addresses (the owner gets an 'account exists' link), links are limited to one per kind a minute and five an hour, and unconfirmed password accounts cannot log in. Frontend: login form with sign-up and forgotten password next to the social buttons, and the /jelszo page for the link. Still behind PASSWORD_LOGIN (off on prod). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -198,6 +198,18 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.tagline { font-family: var(--font-display); font-size: 38px; font-weight: 600; line-height: 1.1; }
|
||||
.auth-foot { font-size: 15px; color: var(--muted); text-align: center; }
|
||||
|
||||
/* E-mail and password next to the social buttons */
|
||||
.auth-or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: -6px 0; }
|
||||
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
|
||||
.pw-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
|
||||
.pw-switch { text-align: center; }
|
||||
.link-btn {
|
||||
background: none; border: 0; padding: 0; font: inherit; color: var(--gold); cursor: pointer;
|
||||
text-decoration: underline; text-underline-offset: 2px;
|
||||
}
|
||||
.link-btn:hover { color: var(--gold-hover); }
|
||||
.pw-label-row .link-btn { font-size: 13px; text-decoration: none; }
|
||||
|
||||
/* Social login buttons; Google's own button lies invisibly on top (.gsi-overlay). */
|
||||
.social-login { position: relative; }
|
||||
.btn-social {
|
||||
|
||||
Reference in New Issue
Block a user