Commit 884f795f authored by Evan Read's avatar Evan Read

Merge branch 'doc-add-disable-2fa' into 'master'

Doc | Adds steps for disabling 2fa for single user

See merge request gitlab-org/gitlab!68136
parents 083556f8 f2253db0
...@@ -557,10 +557,17 @@ end ...@@ -557,10 +557,17 @@ end
### Skip reconfirmation ### Skip reconfirmation
```ruby ```ruby
user = User.find_by_username '<username>' user = User.find_by_username('<username>')
user.skip_reconfirmation! user.skip_reconfirmation!
``` ```
### Disable 2fa for single user
```ruby
user = User.find_by_username('<username>')
user.disable_two_factor!
```
### Active users & Historical users ### Active users & Historical users
```ruby ```ruby
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment