Users should be able to sign up from the login page.
Talk to Deric about what the UI will look like
(All your code will be written inside frontend/pages/signup folder for this coding task)
In the sign up page, users must enter:
email
username (must be at least 10 characters long),
password (twice; and they must match) (must have at least one number and special character)
CIN (10 digit, NOT REQUIRED, put 0000000000 as default if user doesn't enter it)
a secret code (a sentence less than 25 words. no symbols allowed. only pure words and letters. all lowercase)
first name (cant have numbers)
last name (cant have numbers)
phone number (must be 888-888-8888 format, validate that it is)
birthday (yyyy-mm--dd; put some kind of calendar plugin).
Make sure the values are valid. Do this in the frontend. Dont let bad values pass thru.
For CIN, make sure user enters a 9 digit number.
Make a "Sign Up" button that users can click (or just press enter), which calls a javascript method called signUp()
Leave the method empty for now.
The method must receive all the form data as arguments so that when the backend has the feature to create new users, it will be easy to put it together.
(All your code will be written inside
frontend/pages/signup
folder for this coding task)In the sign up page, users must enter:
Make sure the values are valid. Do this in the frontend. Dont let bad values pass thru.
For CIN, make sure user enters a 9 digit number.
Make a "Sign Up" button that users can click (or just press enter), which calls a javascript method called signUp()
Leave the method empty for now.
The method must receive all the form data as arguments so that when the backend has the feature to create new users, it will be easy to put it together.