Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable gitlab two step verification in CLI

I have a situation, Google Authenticator generates non-valid codes and my recovery codes are all expired, how can I disable it via command line?

like image 212
Moe Far Avatar asked Jun 30 '26 07:06

Moe Far


1 Answers

I found the answer, we can disable it via gitlab-rails :

gitlab-rails runner 'User.update_all(otp_required_for_login: false, encrypted_otp_secret: "")'
like image 58
Moe Far Avatar answered Jul 02 '26 21:07

Moe Far