0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/app/services/user
Keegan George 4522398876
UX: Improve password manager and full name handling in code login (#41746)
**Previously**, the email code login form worked poorly with password
managers (a non-conformant `autocomplete="username email"` hint, and the
email input fully unmounted after the first step so managers lost track
of which account was authenticating), and `full_name_requirement:
required_at_signup` was silently bypassed, with new accounts getting
their generated username as their name.

**In this update**:
- Password managers: the email step uses `autocomplete="username"`, and
a visually-hidden readonly email field preserves the account context on
all later steps.
- Full name requirement: sites requiring full names now collect the name
on the "Almost done" step alongside required user fields, enforced
server-side by a new `required_full_name_provided` policy in
`EmailLoginCode::Redeem`.

Note for API consumers: on sites with `full_name_requirement:
required_at_signup`, `/session/login-code/verify` for a new account now
returns `name_required: true` instead of creating the account until a
`name` is provided.

| Step | Screenshot |
|---|---|
| Email step | ![Email
step](https://github.com/discourse/discourse/releases/download/_gh-attach-assets/01-email-step.png)
|
| Code step | ![Code
step](https://github.com/discourse/discourse/releases/download/_gh-attach-assets/02-code-step.png)
|
| Name required | ![Name required
step](https://github.com/discourse/discourse/releases/download/_gh-attach-assets/03-name-required-step.png)
|
| Empty name error | ![Empty name error
state](https://github.com/discourse/discourse/releases/download/_gh-attach-assets/04-name-error-state.png)
|
| Account ready | ![Account ready
step](https://github.com/discourse/discourse/releases/download/_gh-attach-assets/05-account-ready.png)
|

Feedback:
https://meta.discourse.org/t/easier-account-signup-using-email-codes/407068/10
2026-07-15 10:43:03 -07:00
..
action UX: Improve password manager and full name handling in code login (#41746) 2026-07-15 10:43:03 -07:00
policy
bulk_destroy.rb DEV: Replace Ruby numbered parameters by it where applicable (#37810) 2026-02-13 13:59:07 +01:00
bulk_suspend.rb FEATURE: Bulk suspend users and filter the admin users list by activation (#41227) 2026-06-29 11:26:34 +02:00
silence.rb FEATURE: Link staff action log entries to originating reviewable (#39519) 2026-04-30 09:15:45 +08:00
suspend.rb FEATURE: Link staff action log entries to originating reviewable (#39519) 2026-04-30 09:15:45 +08:00