Police-Data-Accessibility-Project / data-sources-app

An API and UI for using and maintaining the Data Sources database
MIT License
2 stars 5 forks source link

Users and login #24

Closed josh-chamberlain closed 4 months ago

josh-chamberlain commented 1 year ago

Context

This is boilerplate login, reinventing zero wheels.

should be followed by #158

Requirements

first permission will be given to admins, #163

There's probably at least one existing library for this.

josh-chamberlain commented 8 months ago

@mbodeantor this is not next up, yet, but not too far off. Just passing to you for refinement

mbodeantor commented 7 months ago

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.

mbodeantor commented 7 months ago

Backend work for this is finished: https://github.com/Police-Data-Accessibility-Project/data-sources-app/pull/196