Улучшить unwrap, UI и админку; обновить документацию.

- Неверный пароль не сжигает wrap сразу: Argon2-гейт до consume и лимит попыток (по умолчанию 3) в настройках
- Подсветка синтаксиса, автоопределение языка, спиннеры, размеры файлов, пагинация audit
- make push (git, Ctrl-D) и актуальный README
This commit is contained in:
Sergey Antropoff
2026-07-18 10:17:05 +03:00
parent e4240a7be5
commit 91719740b9
21 changed files with 1170 additions and 178 deletions
+42
View File
@@ -0,0 +1,42 @@
"""password max attempts setting and per-wrap fail counter
Revision ID: 002_password_attempts
Revises: 001_initial
Create Date: 2026-07-18
"""
from typing import Sequence, Union
import sqlalchemy as sa
from alembic import op
revision: str = "002_password_attempts"
down_revision: Union[str, None] = "001_initial"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
op.add_column(
"app_settings",
sa.Column(
"password_max_attempts",
sa.Integer(),
nullable=False,
server_default="3",
),
)
op.add_column(
"wraps",
sa.Column(
"password_fail_count",
sa.Integer(),
nullable=False,
server_default="0",
),
)
def downgrade() -> None:
op.drop_column("wraps", "password_fail_count")
op.drop_column("app_settings", "password_max_attempts")