Write a program that simulates an authentication portal, the program should contain two functions: A) Signup function: i

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Write a program that simulates an authentication portal, the program should contain two functions: A) Signup function: i

Post by answerhappygod »

Write a program that simulates an authentication portal, the
program should contain two functions:
A) Signup function: it accepts an email and password from the
user, you should check the user's inputs by using RE (Regular
Expression).
The email input should be a valid email.
- The password must contain at least one special character,
digit.
and starts with an upper case letter. If the pattern matches
against the password and email, then show a welcome message and
save the user credentials to a file called "credenials. txt", every
single email and password in a new line, and separate them with a
comma (.).
B) Login function: ask the user to input his/her email and the
password. you have to check the input data, if it is true show the
user a welcome message, if not, let him/her try again.
The user is allowed to try login in only three times, and after
that shows
a message that the service.
blocked temporarily.
You have to ask the user to choose the flow by entering (1) for
signup and (2) for login.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply