260706_1_계정, 로그인, 보안 초안 작성

This commit is contained in:
2026-07-07 19:17:13 +09:00
parent 404941c47a
commit f8633bb1fe
4696 changed files with 6110 additions and 642171 deletions
+19
View File
@@ -0,0 +1,19 @@
"""로그인·재인증 요청/응답 스키마."""
from pydantic import BaseModel, EmailStr, Field
class LoginRequest(BaseModel):
email: EmailStr
password: str = Field(min_length=8, max_length=128)
class OtpVerifyRequest(BaseModel):
email: EmailStr
otp_code: str = Field(pattern=r"^\d{6}$")
class PasswordChangeRequest(BaseModel):
current_password: str = Field(min_length=8, max_length=128)
new_password: str = Field(min_length=8, max_length=128)
logout_all: bool = True