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

Split AccountStorage and ForgotPasswordStorage (expiring now) #1150

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

Falx
Copy link
Contributor

@Falx Falx commented Feb 9, 2022

πŸ“ Related issues

#744

✍️ Description

This PR will split the AccountStorage being used, into an AccountStorage (which still has the KeyValueStorage type) and a new ForgotPasswordStorage (of type ExpiringStorage).

The purpose of this change is to allow for ForgotPassword entries to be purged from the storage (be it in-memory or file based) when users don't click the link sent in the email. A default expiration of 15 minutes is added.

βœ… PR check list

Before this pull request can be merged, a core maintainer will check whether

  • this PR is labeled with the correct semver label
    • semver.patch: Backwards compatible bug fixes.
    • semver.minor: Backwards compatible feature additions.
    • semver.major: Breaking changes. This includes changing interfaces or configuration behaviour.
  • the correct branch is targeted. Patch updates can target main, other changes should target the latest versions/* branch.
  • the RELEASE_NOTES.md document in case of relevant feature or config changes.

@Falx Falx added the semver.major Requires a major version bump label Feb 9, 2022
@Falx Falx requested a review from joachimvh February 9, 2022 11:40
@Falx Falx marked this pull request as ready for review February 9, 2022 11:40
@Falx Falx self-assigned this Feb 9, 2022
@Falx Falx linked an issue Feb 9, 2022 that may be closed by this pull request
Copy link
Member

@joachimvh joachimvh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks.

@joachimvh joachimvh merged commit d067165 into versions/3.0.0 Feb 9, 2022
@joachimvh joachimvh deleted the feat/forgot-pw-exp branch February 9, 2022 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver.major Requires a major version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ForgotPassword records never get cleaned up
2 participants