Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users and login #24

Closed
7 tasks done
Tracked by #163
josh-chamberlain opened this issue Jun 21, 2023 · 3 comments
Closed
7 tasks done
Tracked by #163

Users and login #24

josh-chamberlain opened this issue Jun 21, 2023 · 3 comments
Projects

Comments

@josh-chamberlain
Copy link
Contributor

josh-chamberlain commented Jun 21, 2023

Context

This is boilerplate login, reinventing zero wheels.

should be followed by #158

Requirements

  • Feature/api auth #4
  • create a new login page for the app
    • https://data-sources.pdap.io/login
    • email and password form fields, Log in button and Create account button
    • upon successful login, show a page which says something like "You're logged in!"
    • allow people to create a new user login, via simple form
    • allow people to reset their password via email without admin intervention
  • by default users have the same permissions as the front end (public)

first permission will be given to admins, #163

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

@josh-chamberlain josh-chamberlain changed the title Users and login with Django Users and login Jun 23, 2023
@josh-chamberlain josh-chamberlain transferred this issue from Police-Data-Accessibility-Project/meta Aug 18, 2023
@josh-chamberlain
Copy link
Contributor Author

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

@mbodeantor
Copy link
Contributor

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 mbodeantor removed their assignment Jan 29, 2024
@mbodeantor
Copy link
Contributor

Backend work for this is finished: #196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Status: No status
Roadmap
Later
Development

No branches or pull requests

2 participants