Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apps/codebattle/assets/js/__fixtures__/signUpData.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
"Should be from 6 to 16 characters",
"password"
],
[
"password validation: only special characters",
"!@#$%&*?",
"Should contain at least one letter or number",
"password"
],
[
"password validation: long password",
"11111111111111111",
Expand Down
1 change: 1 addition & 0 deletions apps/codebattle/assets/js/widgets/formik/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const schemas = {
.matches(/^\S*$/, "Can't contain empty symbols")
.min(6, "Should be from 6 to 16 characters")
.max(16, "Should be from 6 to 16 characters")
.matches(/[a-zA-Z0-9]/, "Should contain at least one letter or number")
.matches(/[!@#$%^&*(),.?":{}|<>]/, "Should contain at least one special character")
.required("Password required"),
passwordConfirmation: Yup.string()
Expand Down