Question: Checking Login Credentials in golang programming Write a program that checks the login credentials when the user inputs loginID and password. You must allow 3
Checking Login Credentials in golang programming
Write a program that checks the login credentials when the user inputs loginID and password. You must allow 3 retries before locking the account. For loginID = "admin" the password is = "Pa$$w0rd".
If the credentials are correct output: Login Successful!
If the loginID is correct but the password is incorrect, output: Password Incorrect!
If the loginID is incorrect but the password is correct, output: Login Incorrect!
For every Unsuccessful login, it must also display the attempt number of attempts left. Try again - 2 attempts left!
If the login is Unsuccessful three times, display the output: Account locked Contact 800-123-4567
Create a function to check the loginID and password credentials.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
