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?
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: "")'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With