Answered step by step
Verified Expert Solution
Question
1 Approved Answer
------------ any language but if you do in sql i appreciate User registration page usually needs to validate the user's email and password, Suppose the
------------
any language but if you do in sql i appreciate
User registration page usually needs to validate the user's email and password, Suppose the ng Model for the email and password is email_input, and password_input the ng Model variables also include firstname, lastname Write a function to implement the email and password validation with the following requirements: For email: The email must from a university (.edu) or.gov or.org For password: At least 10 characters (and up to 30 characters) 5 or more unique characters At least 3 of the following: uppercase, lowercase, numeric, or special characters. The allowed special characters are -!@#$%^* - _ = +[{]}/;:,.? [no spaces allowed!] Additionally, your password may not include: Your email, part of your name Number sequences of 4 or more numbers Character repeated 4 or more times Whenever your validate function finds an error, return the error type (what rule is violated. Eg. If fewer than 10 characters, then the return message should be password should be at least 10 characters") Your function is: Validate(email, password, firstname, lastname){ }Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started