Add HTML form validation for the registration form (#14560)

* Add HTML-level validation of username in sign-up form

* Make required fields with incorrect values more visible

* Enable HTML form validation for the registration form

* Mark agreement checkbox as required client-side

* Add minimum length to password

* Add client-side password confirmation validation
This commit is contained in:
ThibG authored and GitHub committed 2020-08-11 23:09:13 +02:00
1 parent ef057584fd
commit d70c3ab4c3
3 files changed
+16 -5

No files matched your search

+2 -1
View File
@@ -364,7 +364,8 @@ code {
box-shadow: none;
}
&:focus:invalid:not(:placeholder-shown) {
&:focus:invalid:not(:placeholder-shown),
&:required:invalid:not(:placeholder-shown) {
border-color: lighten($error-red, 12%);
}