-
Notifications
You must be signed in to change notification settings - Fork 25
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
fix: incorrect created date shown on backup method #572
base: 5
Are you sure you want to change the base?
Conversation
Nice finds! The changes look ok to me. I wonder whether we should require the member to be passed always and not fallback to the current user at all. You may also want to update the doc block when you add a method param and strongly type it to Member. |
The lint failure is related. |
* @return RegisteredMethod|null | ||
*/ | ||
protected function getBackupMethod(): ?RegisteredMethod | ||
protected function getBackupMethod(Member $member): ?RegisteredMethod |
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.
We can't add properties to protected methods in a minor release, as that's a violation of our public API. This change would need to happen in a major release.
Is there a way you can fix this bug without modifying the existing API method signatures?
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.
@GuySartorelli I'm now storing Member in a private property and reverted the method signature back to the original. Let me know if that's ok.
This PR fixes issue #571
When viewing a member, at the bottom of their member screen on the backend it says whether they have MFA setup and when their recovery codes were created. However, for any user that has MFA setup, the recovery codes created date always shows as today.