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 |
---|---|
![]() |
![]() |
Screenshots, after modification
/cc JiHu EM @prajnamas
Edited by Baodong