Skip to content

Refactor sign in HAML form

What does this MR do and why?

Preparation for &19615

In #574982 we will be migrating the sign in form to Vue. To keep things simple (and because it doesn't need to be dynamic) we will leave the Enter admin mode form in HAML. To make this migration easier this MR refacotrs the HAML template so it is split up in a way that is easier to migrate just the sign in form.

References

Screenshots or screen recordings

No visual changes, still looks/works the same

Sign in

Before After
Screenshot_2025-10-20_at_2.36.29_PM Screenshot_2025-10-20_at_2.28.59_PM

Enter admin mode

Before After
Screenshot_2025-10-20_at_2.35.23_PM Screenshot_2025-10-20_at_2.33.17_PM

How to set up and validate locally

  1. Set up admin mode - https://docs.gitlab.com/administration/settings/sign_in_restrictions/#enable-admin-mode-for-your-instance
  2. Sign in as an admin
  3. Enter admin mode

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.

Edited by Peter Hegman

Merge request reports

Loading