Use Python to solve the following question
Write a program that simulates an authentication portal, the program should contain two functions: A) Signup function: it accepts an email and a 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 is blocked temporarily. You have to ask the user to choose the flow by entering (1) for signup and (2) for login.
Use Python to solve the following question
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Use Python to solve the following question
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!