双因素身份验证 (2FA)#
¥Two-factor authentication (2FA)
双因素身份验证 (2FA) 在用户名和密码的基础上增加了第二种身份验证方法。这提高了账户安全性。n8n 支持使用身份验证器应用进行双因素身份验证 (2FA)。
¥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:
- 前往“设置”>“个人”。
¥Go to you Settings > Personal. 2. 选择“启用双因素身份验证”。n8n 打开一个包含二维码的模态框。
¥Select Enable 2FA. n8n opens a modal with a QR code. 3. 扫描身份验证器应用中的二维码。
¥Scan the QR code in your authenticator app. 4. 在“来自身份验证器应用的代码”中输入你应用中的代码。
¥Enter the code from your app in Code from authenticator app. 5. 选择“继续”。n8n 显示恢复代码。
¥Select Continue. n8n displays recovery codes. 6. 保存恢复代码。如果你丢失了身份验证器,你需要这些信息来重新访问你的账户。
¥Save the recovery codes. You need these to regain access to your account if you lose your authenticator.
为你的实例禁用双因素身份验证 (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.