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
@@ -0,0 +1,19 @@
"""保存加密后的登录凭证。"""
from alembic import op
import sqlalchemy as sa
revision = "0003_credentials"
down_revision = "0002_accounts_only"
branch_labels = None
depends_on = None
def upgrade() -> None:
with op.batch_alter_table("accounts") as batch:
batch.add_column(sa.Column("credential_cipher", sa.Text(), nullable=False, server_default=""))
def downgrade() -> None:
with op.batch_alter_table("accounts") as batch:
batch.drop_column("credential_cipher")