"Configure it later" button for 2FA not visible during grace period

Summary

"Configure it later" button for 2FA not visible during grace period. This would be annoying since the user is redirected back to /profile/two_factor_auth unless they enable 2FA

Steps to reproduce

  1. As an admin enable 2FA for a group with some grace period
  2. Sign in as a user who is a member of that group
  3. You will land on /profile/two_factor_auth page and the "Configure it later" button is not visible.

What is the current bug behavior?

"Configure it later" button for 2FA not visible during grace period

What is the expected correct behavior?

"Configure it later" button for 2FA should be visible during the grace period.

Relevant logs and/or screenshots

Screenshot_2019-09-11_16.45.34

Discovered on GDK CE 12.3.0-pre 6ba49d6d683

Edited by Sanad Liaquat