Question: Please use GOLANG Write a program that checks the login credentials when the user inputs loginID and password. You must allow 3 entries before locking
Please use GOLANG
Write a program that checks the login credentials when the user inputs loginID and password. You must allow 3 entries 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: Incorrect!
If the loginID is incorrect but the password is correct, output: Incorrect!
For every Unsuccessful login, it must also display the attempt number of attempts left. Try again - 1 attempts left!
If the login is Unsuccessful three times, display the output: Account locked
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
