-
Notifications
You must be signed in to change notification settings - Fork 154
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
"Invalid reset password token " #758
Comments
Let's start with what the url is that you were redirected to i.e. xxx/reset/??? Also a bit of info on your configuration would help |
The site has been in use for several years, but hasn't been maintained. I just checked and see that How is the token generated? |
A basic question - make absolutely sure you removed the old flask_security package and then install the flask-security-too package (make sure the directory in site-packages is empty). sha512_crypt is fine - in the past few years, argon2 has received lots of enthusiastic support. The token is generated using the itsdangerous package. That error means that either the 'user' that is looked up with the contents of the token doesn't exist OR something wrong with the token. I assume you have updated your database models to include the fs_uniquifier in the User model and have made sure you populated that field for any existing records. |
@jwag956 , thanks for your suggestions. I'm encountering the same issue on another site where I'm upgrade from Flask-Security to Flask-Security-Too, and went through the checklist:
|
Glad that worked - 'random text' isn't a great idea :-) It is critical that every user have a UNIQUE fs_uniquifier. Check out the migration tips: |
Yes, 'random text' is not a great idea; but in the case I was just using to troubleshoot locally. The link to the change log is a big help. Thanks. |
Issue:
When arriving at "/reset" page by clicking on the link provided in the email received to reset password, the following error is received: "Invalid reset password token"
Can anyone direct me where to start troubleshooting?
Thanks for any help.
The text was updated successfully, but these errors were encountered: