Skip to content

Display current user's username in Identity Verification page

Eugie Limpin requested to merge el-display-username-in-iv-pages into master

What does this MR do and why?

Resolves https://gitlab.com/gitlab-org/modelops/anti-abuse/team-tasks/-/issues/708.

Display current user's username in Identity Verification page

MR acceptance checklist

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

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-07-15_at_5.01.20_PM

How to set up and validate locally

  1. Start GDK simulating SaaS

    $ export GITLAB_SIMULATE_SAAS=1
    $ gdk start
  2. Enable FFs and update required settings

    $ rails c
    > Feature.enable(:identity_verification)
    > ApplicationSetting.first.update(email_confirmation_setting: 'hard', require_admin_approval_after_user_signup: false)
  3. Setup Arkose

    > ApplicationSetting.first.update(arkose_labs_public_api_key: "XXX", arkose_labs_private_api_key: "YYY", )

    Note: credentials are in 1Password under ArkoseLabs API keys (DEVELOPMENT)

  4. Go to http://localhost:3000/users/sign_up, fill in the signup form, and then click Register

  5. Verify that you are redirected to the Identity Verification page and that the new user's username is displayed (see screenshot above)

Edited by Eugie Limpin

Merge request reports

Loading