{% extends "base.html" %} {% block title %}{{ t('我的') }} · {{ product_name }}{% endblock %} {% block content %} {% if current_user and current_user.must_change_password %}

{{ t('请先修改密码。改完后需要重新登录。') }}

{% endif %} {% if notice %}
{{ t(notice) }}
{% endif %} {% if error %} {% endif %} {% if tab == 'account' %}
{{ t('用户名') }}
{{ profile.user.username }}
{{ t('角色') }}
{{ t('分析员' if current_user and current_user.role == 'analyst' else '管理员') }}
{{ t('最近登录') }}
{% if last_login %}{{ local_time(last_login) }}{% else %}{{ t('未记录') }}{% endif %}
{% elif tab == 'password' %}
{% if password_error %}{% endif %}

{{ t('至少 8 位。修改成功后需要重新登录。') }}

{% else %}

{{ t('每个 Token 独立有效,删除后立即失效。') }}

{% if tokens %} {{ t('+ 生成新 Token') }} {% endif %}

{{ t('MCP 地址') }}

{{ mcp_url }}
{% if tokens %}
{% for token in tokens %} {% endfor %}
{% if pages > 1 %} {% endif %} {% else %}

{{ t('还没有 MCP Token') }}

{{ t('生成一个 Token 给 Cursor、Codex 或 DeepSeek Harness 使用。') }}

{{ t('+ 生成第一个 Token') }}
{% endif %}
{% endif %} {% if tab == 'mcp' %} {% for token in tokens %} {% endfor %} {% endif %} {% if tab == 'mcp' %} {% endif %} {% endblock %} {% block scripts %} {% if new_token %}{% endif %} {% endblock %}