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
Improved password reset #228
Conversation
Nice @mbodeantor ty! You good if I push the client changes in this branch as well? |
@joshuagraber For sure! |
Check token validity on page load
Add func to check validity of reset token
Update ResetPassword test Update snapshots
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed everything locally @mbodeantor. CC @josh-chamberlain if you want to run through the reset pw flow to test?
@joshuagraber sorry, I thought of this after merging it into dev—on the reset password page, we should display the same requirements that we do on |
@josh-chamberlain Working on this, but something is erroring on @mbodeantor does this look familiar to you?
|
@mbodeantor @joshuagraber Yep, that's a product of my type hinting causing an error. Taking a look at it right now, and should hopefully have it resolved by tomorrow if not today. This error didn't come up in my running of tests, which either means I missed a test or existing tests aren't covering this code. That may be worth making an issue about. |
@joshuagraber What Python version were you running on? The Additionally, at the moment I do not see where a Python version is specified in the code. The tests.yaml file runs on version |
@maxachis For local development, it is just based on the virtual env that is setup. In the build instructions in the README we are specifying 3.9 which as you point out does not match how we are having GitHub build, I updated the README to match. @joshuagraber Give it a shot with a 3.11 virtualenv, also don't forget to update pdap_ds_start with the new env name! |
Addresses #214
Reset tokens are now valid for 15 min, password reset email lists this fact
/reset-token-validation endpoint will check the reset token
Docs: https://app.gitbook.com/o/-MXypK5ySzExtEzQU6se/s/-MXyolqTg_voOhFyAcr-/~/changes/479/api/endpoints/admin