Disable Two-factor authentication (2FA)

Guys, I need some help.

I use the Two-factor authentication (2FA) feature on my account, but I had problems with my Google Autenthicator and I can no longer generate codes and I need to reinstall on the N8N, on the panel I have the option to disable Two-factor authentication (2FA) but I need to There is a code for this, is there another way to disable Two-factor authentication (2FA) other than through the panel?

I still have some backup codes, but they are running out and I will soon lose access. I would appreciate it if you could help me.

1 Like

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @herenyi

Thanks for posting here and welcome to the community! :partying_face:

If you are self-hosting you can use N8N_MFA_ENABLED = false

1 Like

Hi Ria, how are you? Thanks for the welcome :wink:

I did the procedure, but it still asks for 2fa.
I restarted docker, server, is there anything else I should do?

image

Hi @herenyi

As per the docs, the flag ignores current users that have 2FA set up, might this be the case?

1 Like

Hey @herenyi

You can use the cli to disable MFA for a specific user.

1 Like

Jon! Good morning,
I did it according to the link you sent me and it worked, thank you very much. Good week to you

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.