Skip to content

changelog: Bug Fixes, Authentication, AAl3 Users cannot skip MFA selection for pivcac (LG-7020)#6678

Merged
mdiarra3 merged 1 commit intomainfrom
mdiarra/LG-7020-prevent-user-skipping-adding-authentication-method
Aug 3, 2022
Merged

changelog: Bug Fixes, Authentication, AAl3 Users cannot skip MFA selection for pivcac (LG-7020)#6678
mdiarra3 merged 1 commit intomainfrom
mdiarra/LG-7020-prevent-user-skipping-adding-authentication-method

Conversation

@mdiarra3
Copy link
Contributor

@mdiarra3 mdiarra3 commented Aug 2, 2022

No description provided.

@mdiarra3 mdiarra3 requested review from a team and mitchellhenke August 2, 2022 17:11

def index
@two_factor_options_form = TwoFactorOptionsForm.new(current_user)
two_factor_options_form
Copy link
Contributor

Choose a reason for hiding this comment

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

since two_factor_options_form is a memoized method, we could lazily call it later and still get the same value. Is there a reason to instantiate it here?

This jumps out at me because we're calling the method but not using the result anywhere, so I think we can just remove it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know we call it out as a global variable to be used in the view later. I guess i can also call it as a helper method.

@mdiarra3 mdiarra3 merged commit 5e77236 into main Aug 3, 2022
@mdiarra3 mdiarra3 deleted the mdiarra/LG-7020-prevent-user-skipping-adding-authentication-method branch August 3, 2022 15:28
@mdiarra3 mdiarra3 restored the mdiarra/LG-7020-prevent-user-skipping-adding-authentication-method branch August 4, 2022 13:41
@solipet solipet mentioned this pull request Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants