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

Use unique key in account activation link and reset password link #234

Merged
merged 4 commits into from Jun 3, 2021

Conversation

litvinovg
Copy link
Contributor

What does this pull request do?

Removes limit of 8 characters on passwordLinkExpiresHash and use unique key for account activation and password reset links.

Additional Notes:

Use in combination with PR vivo-project/Vitro-languages#47

How should this be tested?

With SMTP server configured in runtime.properties, create a new user with a valid email address. Confirm that the link sent in the email contains an activation code longer than 8 characters, and that the clicking the link successfully leads to the password setting page.
Try changing emailKey to verify that modified key doesn't lead to password setting page, instead message that link invalid will appear.
Reset user password. Confirm that the link sent in the email contains an activation code longer than 8 characters and that the clicking the link successfully leads to the password setting page.
Try changing emailKey to verify that modified key doesn't lead to password setting page, instead message that link invalid will appear.

Interested parties

@VIVO-project/vivo-committers

@litvinovg litvinovg changed the title Issue/email links Use unique key in account activation link and reset password link Jun 1, 2021
@brianjlowe brianjlowe merged commit d21dc92 into vivo-project:rel-1.12.0-RC Jun 3, 2021
ghost pushed a commit that referenced this pull request Feb 23, 2023
* Use unique key for email activation and password reset

* Renamed old variable from hash to key

* Check for null before setting email key for backward compatibility. Removed comment about old behaviour.

* Send password_change_invalid_key message instead of password_change_not_pending on key mismatch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants