File tree Expand file tree Collapse file tree 1 file changed +8
-26
lines changed
self-hosted/configuration Expand file tree Collapse file tree 1 file changed +8
-26
lines changed Original file line number Diff line number Diff line change @@ -120,16 +120,14 @@ If a user loses access to their authenticator:
120120
1211212. **Admin intervention** (if backup codes are also lost) :
122122` ` ` bash
123- # Disable MFA for a specific user
124- rails runner "
125- user = User.find_by(email: 'user@example.com')
126- user.update!(
127- otp_required_for_login: false,
128- otp_secret: nil,
129- otp_backup_codes: nil
130- )
131- puts 'MFA disabled for ' + user.email
132- "
123+ # Reset MFA for a specific user
124+ rake mfa:reset[user@example.com]
125+
126+ # Generate new backup codes for a user
127+ rake mfa:generate_backup_codes[user@example.com]
128+
129+ # Reset MFA for all users
130+ rake mfa:reset_all
133131` ` `
134132
135133# # Security Best Practices
@@ -166,22 +164,6 @@ rails runner "
166164If encryption keys are lost :
1671651. All users will need to re-enable MFA
1681662. Communicate the issue to users promptly
169- 3. Consider temporary alternative authentication methods
170-
171- # ## Rolling Back MFA
172167
173- To completely disable MFA for all users :
174-
175- ` ` ` bash
176- # Disable MFA for all users
177- rails runner "
178- User.update_all(
179- otp_required_for_login: false,
180- otp_secret: nil,
181- otp_backup_codes: nil
182- )
183- puts 'MFA disabled for all users'
184- "
185- ` ` `
186168
187169*This guide applies to Chatwoot version 4.6 and above*
You can’t perform that action at this time.
0 commit comments