Last active
August 24, 2017 13:08
-
-
Save istepanov/0958404c30865911aeeb8b5b05c6e0b3 to your computer and use it in GitHub Desktop.
Reset 2FA on Docker GitLab image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker exec -ti gitlab bash | |
cd /home/git/gitlab | |
sudo -u git -H bundle exec rails console production | |
User.find_each(&:disable_two_factor!) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment