mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-20 20:49:53 +00:00
* Update user and login security configs * Optimize some code definitions * Update config comments * Update the captcha check * Update the config plugin sql scripts * Add user password history model to init * Fix some logic errors * Add last_password_changed_time to user sql * Fix user update password * Fix the dynamic config check * Update the user sql style
15 lines
376 B
Python
15 lines
376 B
Python
from pydantic import Field
|
|
|
|
from backend.common.schema import SchemaBase
|
|
|
|
|
|
class UserPasswordHistoryBase(SchemaBase):
|
|
"""用户历史密码记录基础模型"""
|
|
|
|
user_id: int = Field(description='用户 ID')
|
|
password: str = Field(description='历史密码')
|
|
|
|
|
|
class CreateUserPasswordHistoryParam(UserPasswordHistoryBase):
|
|
"""创建用户历史密码记录"""
|