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

Fix bug in `/password-reset` in production #518

Open maxachis opened 1 week ago

maxachis commented 1 week ago

Context

related: https://github.com/Police-Data-Accessibility-Project/data-sources-app-v2/pull/159 related: https://github.com/Police-Data-Accessibility-Project/data-sources-app-v2/pull/145

Currently the /password-reset link in V2 PRODUCTION is 🐛. Here's what @josh-chamberlain recently received as a password reset email:

https://data-sources-v2.pdap.ioreset-password/2476f29c416e482baef5ce1aa1c37d7c

This would lead to a nothing link, and is therefore something we need to adjust.

Additionally, our current tests are failing to pick up that this is a problem, and that will need to be addressed as well.

Requirements

Tests

Docs

Open questions

maxachis commented 1 day ago

@josh-chamberlain Do you think we still need this up, especially since it's in v1, will soon be obviated, and none but us are using the API (especially for v1) anyway?

josh-chamberlain commented 17 hours ago

@maxachis I'm confused—this was happening in v2 for me. I think. That's why I got the v2 reset link. I was testing on data-sources-v2.

maxachis commented 17 hours ago

Oh. Well in that case, we fixed it! I think? I'll have to double check.