设置双因素认证 (2FA)

增强您账户的安全性

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% endwith %}
{% if existing2fa and existing2fa.IsEnabled == 1 %}

双因素认证已启用

{% endif %} {% if step == 1 %}

什么是双因素认证?

双因素认证 (2FA) 为您的账户增加了额外的安全层。启用后,登录时除了密码外, 您还需要输入通过手机应用生成的验证码。

设置过程:

  1. 点击"开始设置"按钮生成一个二维码
  2. 使用认证应用(如Google Authenticator、Authy等)扫描二维码
  3. 输入应用生成的6位验证码完成验证
{% if existing2fa and existing2fa.IsEnabled == 1 %} {% endif %}
{% endif %} {% if step == 2 %}

扫描二维码

使用您的认证应用(如Google Authenticator、Authy等)扫描下方的二维码, 或手动输入密钥:{{ secret }}

2FA 二维码

扫描完成后,输入应用生成的6位验证码以完成设置:

返回
{% endif %}
返回首页