mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 10:39:43 +08:00
**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 |  | | Code step |  | | Name required |  | | Empty name error |  | | Account ready |  | Feedback: https://meta.discourse.org/t/easier-account-signup-using-email-codes/407068/10 |
||
|---|---|---|
| .. | ||
| action | ||
| policy | ||
| bulk_destroy.rb | ||
| bulk_suspend.rb | ||
| silence.rb | ||
| suspend.rb | ||