Question: Your very first task is to create a registration and login feature. This feature needs to allow users to ( Read through the entire task

Your very first task is to create a registration and login feature. This feature needs to allow users to (Read through the entire task before you start any work):
Create an account by entering username, password, first name and last name.
a. The system needs to check that the following conditions are met, and reply with the appropriate output message:
723
\table[[Conditions,Messages,],[,True,False],[\table[[Username],[contains an],[underscore],[and is no more],[than 5],[characters],[long]],\table[["Username],[successfully],[captured"]],\table[["Username],[is not],[correctly],[formatted,],[please],[ensure],[that your],[username],[contains],[an],[underscore],[and is no]]]]
\table[[,,\table[[5],[characters],[in length ."]]],[\table[[Password],[meets the],[following],[password],[complexity],[rules, the],[password],[must be:],[* At least],[8],[characters],[long],[- Contain],[a capital],[letter],[- Contain],[a number],[- Contain],[a special],[character]],\table[["Password],[successfully],[captured"]],\table[["Password],[is not],[correctly],[formatted,],[please],[ensure],[that the],[password],[contains at],[least 8],[characters,],[a capital],[letter, a],[number],[and a],[special],[character."]]]]
Login to the account using the same username and password.
a. The system should provide the following messages to verify the user's authentication state:
\table[[Conditions,Messages,],[,True,False],[\table[[The entered],[IIcarnam]],"Welcome,]]
\table[[\table[[The entered],[username],[and],[password are],[correct, and],[the user is],[able to log],[in.]],\table[["Welcome],[
Boolean:sheckPassword Complexity()String registerUser)the passwordmust be:At leasteightcharacterslong. Contain acapital letter Contain anumber Contain aspecialcharacterThis methodreturns thenecessaryregistrationmessagingindicating if: Theusername isincorrectlyformattedThepassworddoes notmeet thecomplexityrequirements The tWOaboveconditionshave beenmet and the
Boolean loginUser(0String returnLoginStatusTest: (assertEquals)Username is correctlyformatted:The usernamecontains anunderscore and is noUser asmore than 5characters longbeenregisteredsuccessfully.This methodverifies that thelogin detailsentered matchesthe login detailsstored when theuser registers.This methodreturns thenecessarymessaging for:4. It is good practice to never push codethat has not been tested, you will need tocreate the following unit tests to verify thatyour methods are executing as expected:AsuccessfulloginA failedloginTest Data andexpected systemresponses.Test Data: "kyl_1"
\table[[,The system],[,returns:],[,"Welcome 923
Test(assertTrue/False)Login SuccessfulLogin FailedUsername correctlyformattedUsernameincorrectlyformattedPassword meetscomplexityrequirementsPassword does notmeet complexityrequirements"Password is notcorrectly formatted,please ensure thatthe pasSWordcontains at least 8characters, a capitalletter, a number and aspecial character."The system returns:TrueThe system returns:FalseThe system returns:TrueThe system returns:FalseThe system returns:TrueThe system returns:False
Your very first task is to create a registration

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!