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

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

Remove token in `/request-reset-token` response #519

Open maxachis opened 1 week ago

maxachis commented 1 week ago

Context

Currently, when requesting a password reset, the reset token is included in the response:

{
  "message": "An email has been sent to your email address with a link to reset your password. It will be valid for 15 minutes.",
  "token": "6c68c09bfbe4442194482904ec6768c3"
}

Obviously, the whole point of a password reset request is that the user has to get the token from their email. A user shouldn't be able to see the reset token in the network response.

Requirements

Tests

Docs

Open questions