Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: nicer form validation #420

Merged
merged 2 commits into from
Dec 20, 2016
Merged

ci: nicer form validation #420

merged 2 commits into from
Dec 20, 2016

Conversation

talex5
Copy link
Contributor

@talex5 talex5 commented Dec 20, 2016

Instead of showing an error page that is blank except for the error message when an invalid form is submitted, show the form again with the entered values still filled in and invalid fields tagged with the errors.

Also, move the core form logic into a new CI_form module.

Thomas Leonard added 2 commits December 20, 2016 14:45
There's little benefit to using a short token here, and this new length
avoids the ugly == on the end.

Signed-off-by: Thomas Leonard <thomas.leonard@docker.com>
Instead of showing an error page that is blank except for the error
message when an invalid form is submitted, show the form again with the
entered values still filled in and invalid fields tagged with the
errors.

Also, moved the core form logic into a new CI_form module.

Signed-off-by: Thomas Leonard <thomas.leonard@docker.com>
@talex5 talex5 merged commit 0fa1be5 into moby:master Dec 20, 2016
@talex5 talex5 deleted the web-install branch December 20, 2016 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant