Skip to content

Add gon variables before rendering two_factor

What does this MR do and why?

We found the problem in the failed pipeline in MR.

Found that on the login page about 2FA, most gon variables is missing (right picture).

This caused problems fetching the svg from Gon, which in turn caused redirection to the wrong page (/undefined) after login.

More details see the failed job: https://gitlab.com/gitlab-jh/jh-team/gitlab/-/jobs/3336058291

login page login page 2FA
user-pswd 2fa

Screenshots, after modification

after


/cc JiHu EM @prajnamas

Edited by Baodong

Merge request reports