Professional Documents
Culture Documents
Authentication Program This Program Validates The Input Username and Password
Authentication Program This Program Validates The Input Username and Password
4. The program checks to see that the “Failed Attempt Counter” for this username is less than 5.
(Alternate Patch D: The “Failed Attempt Counter” in the database is 5.)
5. The program validates that the input password matches the password in the database for the username.
(Alternate Path C: The input Password DOES NOT match the password in the database)
6. The program resets the “Failed Attempt Counter” for this username in the database to ZERO.
Alternate Paths:
Alternate Path A: The Input Validation Fails
1. The program returns “INVALID DATA”
2. Use Case Ends
Alternate Path C: The input Password DOES NOT match the password in the database
1. The program increments the “Failed Attempt Counter” in the database for this username by 1.
2. The program validates that the “Failed Attempt Counter” in the database for this username is less than 5.
(Alternate Patch D: The “Failed Attempt Counter” in the database is 5.)
3. The program returns “INVALID PASSWORD”
4. Use Case Ends
Business Rules:
Input Validation:
The username and password fields should NOT be blank.
The username input should NOT have special characters.