# השבתת אימות two-factor באמצעות קונסולה

**URL:** https://meta.discourse.org/t/disable-2fa-via-console/148309
**Category:** Self-Hosting
**Tags:** how-to
**Created:** [17 באפריל,‏ 2020,‏ 3:27am UTC](https://meta.discourse.org/t/disable-2fa-via-console/148309 "2020-04-17T03:27:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [17 באפריל,‏ 2020,‏ 3:27am UTC](https://meta.discourse.org/t/disable-2fa-via-console/148309/1 "2020-04-17T03:27:28Z")

</div>

> 🔖 This guide provides instructions for administrators on how to disable two-factor authentication (2FA) via the console.
> 
> 🙋 Required user level: System Admin
> 
> 🔧 Console access required
> 
> ⚠ This guide should only be used when 2FA cannot be disabled from the user admin page.
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/a/c/ac9cc5fbf4e9e757dbbc398b39f2c4120493118e.png)

* * *

Discourse supports three types of 2-factor options: TOTP (6-digit codes rotating every 30 seconds), security key (Yubikey, biometric, etc.), and backup codes. Sometimes users will misconfigure their 2-factor device, lose or reset their phone, or otherwise no longer be able to use/obtain the 2-factor. Admins can then assist in reseting this for them.

> ⚠ Admins should be certain to verify that the user is the one making the request. Disabling 2-factor makes an account easier to hack, so be sure a bad party isn’t requesting the reset.

## Disabling 2FA for a user

1. First, you’ll need to know what user is having the issue. Get the username for the user:

2. Access the rails app on your server via ssh.

3. Use the provided rake task to disable all 2FA methods for the user:

> Last edited by @martin 2024-10-18T01:32:27Z
> 
> > **Check document**
> >
> > Perform check on document:
