Closed josh-chamberlain closed 4 months ago
@mbodeantor this is not next up, yet, but not too far off. Just passing to you for refinement
The current login get user endpoint will need the api key functionality to be split out into a separate endpoint so that it returns a success or fail on match. We will also need to add a "role" column to the user table which this endpoint should also return. If the role is "admin" the front end should show the edit button. For now we can update the roles in the database manually.
In addition will need to add an update password endpoint for the reset password functionality.
Backend work for this is finished: https://github.com/Police-Data-Accessibility-Project/data-sources-app/pull/196
Context
This is boilerplate login, reinventing zero wheels.
should be followed by #158
Requirements
email
andpassword
form fields,Log in
button andCreate account
buttonfirst permission will be given to admins, #163
There's probably at least one existing library for this.