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
[persistence] remove ResetPasswordRequest objects programmatically #284
Conversation
94f8ab3
to
1ec478f
Compare
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.
Yea, this makes sense to me. I guess no changes to MakerBundle, right? Just need to mention this in the docs
src/Persistence/Repository/ResetPasswordRequestRepositoryTrait.php
Outdated
Show resolved
Hide resolved
e4cae9d
to
239a9ad
Compare
README.md
Outdated
Typically, you'd call this method when you need to remove request object(s) for | ||
a user who changed their email address due to suspicious activity and potentially | ||
has valid request objects in persistence with their "old" compromised email address. | ||
In such cases, pass the `user` object to `removeRequest()`. |
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.
Add a quick symfony controller example - like a profile() action with a pretend ProfileFormType. Set an $email variable to the current user’s email before we handle the submit. Then on success, check to see if it’s changed. If it did, call our method.
b00491a
to
2bc192a
Compare
id
is there email" this method won't work as expected