mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-15 12:10:12 +02:00
10 lines
270 B
Python
10 lines
270 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel
|
|
from pydantic.types import conint, constr
|
|
|
|
|
|
class LoginInput(BaseModel):
|
|
password: constr(min_length=8)
|
|
one_time_password: Optional[constr(
|
|
min_length=6, max_length=6, regex="^[0-9]+$")] = None
|