双因素身份验证 (2FA)(Two-factor authentication (2FA))#
两步验证(2FA)在用户名和密码的基础上增加了第二种验证方法。这可以提高账户安全性。n8n 支持使用身份验证应用进行两步验证。
🌐 Two-factor authentication (2FA) adds a second authentication method on top of username and password. This increases account security. n8n supports 2FA using an authenticator app.
启用双因素身份验证 (2FA)(Enable 2FA)#
你的手机上需要安装身份验证器应用。
🌐 You need an authenticator app on your phone.
要在 n8n 中启用双因素身份验证 (2FA):
🌐 To enable 2FA in n8n:
- 进入你的 设置 > 个人。
- 选择 启用双重身份验证。n8n 会打开一个带有二维码的弹窗。
- 扫描身份验证器应用中的二维码。
- 在 来自验证器应用的代码 中输入你的应用代码。
- 选择 继续。n8n 会显示恢复码。
- 保存恢复码。如果你丢失了身份验证器,需要这些码才能重新访问你的账户。
为你的实例禁用双因素身份验证 (2FA)(Disable 2FA for your instance)#
自托管用户可以通过将 N8N_MFA_ENABLED 设置为 false 来配置他们的 n8n 实例,以禁用所有用户的双因素认证(2FA)。请注意,如果现有用户已启用 2FA,n8n 将忽略该设置。有关使用环境变量配置 n8n 实例的更多信息,请参阅配置方法。
🌐 Self-hosted users can configure their n8n instance to disable 2FA for all users by setting N8N_MFA_ENABLED to false. Note that n8n ignores this if existing users have 2FA enabled. Refer to Configuration methods for more information on configuring your n8n instance with environment variables.