Describe the bug
When a user fills out the Sign Up form and a server-side validation error occurs (e.g., invalid email, duplicate user ID, or unaccepted email domain), the page redirects back to the form and all fields (email, user ID, given name, family name) are cleared. The user has to re-enter everything from scratch.
Expected behavior
When validation fails, the form should retain the previously entered values so the user only needs to fix the invalid field.
To Reproduce
- Go to
localhost:1511/authentication/create_account
- Fill in all fields (email, user ID, given name, family name, password)
- Use an email with an unaccepted domain (e.g.,
[email protected])
- Click "Sign Up"
- See error message — all fields are now cleared
Configuration
- OS: Linux (Ubuntu 22.04 VM)
- Browser: Chrome
Screenshots
Additional context
This happens because the form uses a server-side POST redirect pattern. When validation fails, it redirects back to the form without preserving the submitted values. Adding client-side validation for email and user ID fields (similar to the password validation added in #12455 ) would prevent unnecessary server round-trips and field clearing.
Describe the bug
When a user fills out the Sign Up form and a server-side validation error occurs (e.g., invalid email, duplicate user ID, or unaccepted email domain), the page redirects back to the form and all fields (email, user ID, given name, family name) are cleared. The user has to re-enter everything from scratch.
Expected behavior
When validation fails, the form should retain the previously entered values so the user only needs to fix the invalid field.
To Reproduce
localhost:1511/authentication/create_account[email protected])Configuration
Screenshots
Additional context
This happens because the form uses a server-side POST redirect pattern. When validation fails, it redirects back to the form without preserving the submitted values. Adding client-side validation for email and user ID fields (similar to the password validation added in #12455 ) would prevent unnecessary server round-trips and field clearing.