When user is a the login page, if they have already registered and log in with their correct credentials they are redirected to the home page. Else they are given an error modal.
Closes #2
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Description
When user is a the login page, if they have already registered and log in with their correct credentials they are redirected to the home page. Else they are given an error modal.
Closes #2
Type of change
Testing Instructions
git fetch --all
git checkout cr-basic-auth
watchgod request_handler.main
If you do not already have a user registered, In your
rare.sql
file, add and run:In another tab, navigate to the client-side directory
npm start
In the browser, visit the login page at
http://localhost:3000/login
Successful login will take you to the home page, else a modal will pop up.
Checklist: