Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

------------

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

What are the disadvantages of the functional organisation?

Answered: 1 week ago

Question

l Describe four characteristics of an effective orientation system.

Answered: 1 week ago

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago