feat: 登录后进入实时首页,并加密保存可刷新的登录凭证

This commit is contained in:
2026-10-26 18:12:00 +08:00
parent eaad01d5a8
commit 91707f959f
14 changed files with 748 additions and 136 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
"""本地只保存工号和加密后的密码。"""
"""本地保存工号、加密密码和加密后的登录凭证。"""
from __future__ import annotations
@@ -15,3 +15,4 @@ class Account(Base):
employee_id: Mapped[str] = mapped_column(String(32), primary_key=True)
password_cipher: Mapped[str] = mapped_column(Text)
credential_cipher: Mapped[str] = mapped_column(Text, default="")