Implemented Index and Login actions (~/account, ~/account/login)
@jcocchi *note [Authorize] on HomeController to allow me to remove Jane's fake data without chat.cs hitting null values when trying to populate Lobby room list (UpdateActivity)
Testing Use Cases
[ ] Start project -> root should load with a blank screen. (currently not authenticated, should not be in Lobby)
[ ] Navigate to '~/account' -> Unauthorized, should be redirected to a 403 forbidden page
[ ] Navigate to '~/account/login' -> login page should successfully load
[ ] Uncomment lines 107 & 108 AND SET BREAKPOINT in source code AccountController.cs and navigate to '~/account/login' page -> enter username and password (user password: 'Password1!' to hit character requirements) , leave Remember me UNTICKED -> hit 'Log In' button.
Step through code and verify line 108 'var result_create' = successful (this simulates registering a user into the local db for testing purposes).
Once you run this once with 'var result_create' = successful, stop the project and re-comment both lines, you no longer need to create the user.
[ ] Go through the same procedures with the the username and password login you just created
Successful login -> redirect to Lobby page '~/'
Failed -> refreshes '~/account/login' page and notifies you of 'Invalid login attempt.'
NOTE: Since user is authenticated against the identity DB, we have not yet populated the repository with the ChatUser object and associated roomes + info yet. You will receive null object errors when trying to perform tasks when logged in.
Additional Testing
[ ] Submit 'Log In' without username -> check to see if 'Invalid username' warning shows
[ ] Submit 'Log In' without a valid password -> check to see if 'Invalid password' warning shows.
Message me with any questions when testing, I can walk you through the tests. ~ thanks.
Implemented Index and Login actions (~/account, ~/account/login)
@jcocchi *note [Authorize] on HomeController to allow me to remove Jane's fake data without chat.cs hitting null values when trying to populate Lobby room list (UpdateActivity)
Testing Use Cases
Additional Testing
Message me with any questions when testing, I can walk you through the tests. ~ thanks.