LG-11517: Always show "Use another method" option in SMS opt-in#9661
Merged
LG-11517: Always show "Use another method" option in SMS opt-in#9661
Conversation
changelog: User-Facing Improvements, SMS Opt-In, Provide a pathway to deleting one's account after opting-out SMS delivery
| @@ -0,0 +1,9 @@ | |||
| module TwoFactorAuthCode | |||
| class SmsOptInPresenter < GenericDeliveryPresenter | |||
| def initialize; end | |||
Contributor
There was a problem hiding this comment.
(probably for another PR, just noting while I'm here)
this jumped out at me as unnecessary so I checked the superclass... that instance_variable_set... loop dynamically setting @-vars seems very unintuitive to me, I think that we might want to try removing that behavior? Two ideas:
- Since clearly each subclass needs to be instantiated with very different data, remove
optionsfrom the base class and let each sublcass have its own constructor - Make the DeliveryPresenter behavior into a mixin, let each subclass instantiate as needed?
Contributor
Author
There was a problem hiding this comment.
Yeah, I don't love that behavior, and it's not clear (which is the problem) which values are actually used. I think some of the current base constructor options are unused (view, service_provider). I can plan to write up a ticket to rethink this.
jmdembe
approved these changes
Nov 27, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎫 Ticket
LG-11517
🛠 Summary of changes
Updates the SMS opt-in screen to show the troubleshooting options module, always allowing a user to return to "Choose another authentication method" even if they don't have another MFA option available, so that the user can choose to reset (delete) their account if that's their only recourse.
📜 Testing Plan
rails consolesession:👀 Screenshots
SMS Opt-in Send Code:
SMS Opt-in Error: