Allow changing username and password in settings; admin can delete duplicate accounts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-17 19:05:41 +08:00
parent 972d5a1e8c
commit d25a4c6862
6 changed files with 137 additions and 20 deletions
+9 -1
View File
@@ -39,7 +39,15 @@
<button class="btn secondary" style="margin-top:6px" type="submit">保存</button>
</form>
</td>
<td>#{{ a.id }}</td>
<td>
#{{ a.id }}
{% if can_create %}
<form method="post" action="{{ url_for('accounts_delete', aid=a.id) }}" style="margin-top:8px"
onsubmit="return confirm('确认删除账户 #{{ a.id }} {{ a.name }}?');">
<button class="btn secondary" type="submit">删除</button>
</form>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>