Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

--------------------------------- use sql programming User registration page usually needs to validate the user's email and password, Suppose the ng Model for the email and password

image text in transcribed

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

use sql programming

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

Step: 3

blur-text-image

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

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions