Creates a login class to authenticate the username and password, and determine the correct course of action.
Where should the reviewer start?
Just check out Login.js and Login-test.js. There are other files rolled into this PR, but they were just small changes that I made while on this branch.
How should this be manually tested?
If you really want to, pull this branch and run the test suite. The tests are 100% passing, so I would not go through that effort.
Any background context you want to provide?
I wanted to build this as a class for the sake of testing as I start to build functionality.
The plan is to use the authenticateUser() method in a dom handler function, that will tell the dom what dashboard to load based on what user is returned (guest or manager), and if any login information is incorrect it will return an "invalid info" message to be displayed on the login page.
What are the relevant tickets?
15
Screenshots (if appropriate)
Questions:
Does this make sense/seem like a worthwhile idea to you?
Do you see any opportunities to make this simpler/any reasons not to do it this way?
What’s this PR do?
Where should the reviewer start?
How should this be manually tested?
Any background context you want to provide?
authenticateUser()
method in a dom handler function, that will tell the dom what dashboard to load based on what user is returned (guest or manager), and if any login information is incorrect it will return an "invalid info" message to be displayed on the login page.What are the relevant tickets?
15
Screenshots (if appropriate)
Questions: