Simple web app that lets citizens report cases of corruption to the appropriate authorities. Users can also report on things that needs government intervention.
2
stars
0
forks
source link
#163466968 Implements sign in functionality for admin #44
What does this PR do?
This PR connects the front-end admin sign-in form to the back-end sign-in api endpoint so users with admin privilege can login and gain access to the admin back-end.
Description of tasks
Use vanilla Javascript Fetch API to make requests to POST / api/v1/auth/login endpoint
Use Javascript localStorage to store authentication token and user data
Refactor server-side code
Minor ui improvements for better navigation and flow
What does this PR do? This PR connects the front-end admin sign-in form to the back-end sign-in api endpoint so users with admin privilege can login and gain access to the admin back-end.
Description of tasks
How can this PR be tested
What are the relevant pivotal tracker stories? #163466968
Screenshot