Closing the 2FA banner remove query parameter

What does this MR do and why?

Closing the 2FA banner remove query parameter

In we made the 2FA setup banner to appear in the 2FA page. We forgot to initClose2faSuccessMessage in the 2FA page.

This functions removes the two_factor_auth_enabled_successfully=true query parameter from the URL, https://gdk.test:3443/-/profile/two_factor_auth?two_factor_auth_enabled_successfully=true, when the banner is closed.

I think the idea is to persist the banner until it is acknowledged (closed) by the customer. Personally, I feel the implementation is a bit questionable, but for consistency with the account page, let's keep it.

References

Screenshots or screen recordings

No changes.

How to set up and validate locally

  1. Visit https://gdk.test:3443/-/profile/two_factor_auth?two_factor_auth_enabled_successfully=true
  2. Play reloading or closing the banner.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading