Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zmwangx/edc64e9f2437d61b22682ce09089ac96 to your computer and use it in GitHub Desktop.
Save zmwangx/edc64e9f2437d61b22682ce09089ac96 to your computer and use it in GitHub Desktop.
Manually confirm user email with `gitlab-rails console`
  • Run gitlab-rails console;

  • Find the user:

    user = User.User.find_by_username('username')
  • Look at the list of emails and find the one you want to confirm:

    user.emails
  • Confirm it:

    user.emails[1].confirm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment