You are tasked with completing the implementation of the SignUp.vue
component and associated code modules. Below you will find the requirements for the page.
- The name input should be automatically focused when loading the page
- Fields should show an error when any of the validation rules are violated
- Errors should not appear until one of the following occurs:
- a
blur
event has occurred for the associated field - the "sign up" button has been clicked
- a
- Only one error message should appear for a field at any given time
- The "sign up" button should not submit the form if there are errors
- If a
prefilledEmail
is provided, that should be the initial value of the email input
- name
- required
- must be at least 3 characters
- must consist of only letters and whitespace
- email (see
src/validators.js
)- required
- must be formatted as an email address
- the domain must consist of at least 2 parts
- invalid:
test@test
- valid:
[email protected]
- invalid:
- password (see
src/validators.js
)- required
- must be at least 11 characters
- must contain at least one of each of the following character groups:
- lower case letters
- upper case letters
- numbers
- special characters
- confirm password field must match the value of the password field
You can open this repository in CodeSandbox and click the Fork button in the top right corner. From there you can edit files and see how your output is progressing.