Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /yaroslaff_fastapi-simple-auth /fastapi_simple_auth /schemas.py
| from pydantic import BaseModel, EmailStr, create_model | |
| from typing import Optional | |
| from .settings import settings | |
| if settings.username_is_email: | |
| username_type = EmailStr | |
| else: | |
| username_type = str | |
| class UserBase(BaseModel): | |
| username: username_type | |
| class UserCreate(UserBase): | |
| password: str | |
| captcha_token: Optional[str] = None | |
| class UNUSED_User(UserBase): | |
| uuid: str | |
| is_active: bool | |
| class Config: | |
| from_attributes=True | |
| class CaptchaOnlyRq(BaseModel): | |
| captcha_token: str | |
| class VerificationCode(BaseModel): | |
| code: str | |
| captcha_token: Optional[str] = None | |
Xet Storage Details
- Size:
- 611 Bytes
- Xet hash:
- 8bdc35c86216887586160785d4c0ae92f6c436736a62d2e65057e91359023f34
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.