Spaces:
Sleeping
Sleeping
Download auth_module/models.py from moshabann/echo-tutor: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/spaces/moshabann/echo-tutor/resolve/main/auth_module/models.py
- Command line
-
hf download hf://spaces/moshabann/echo-tutor/auth_module/models.py
-
curl -L -o models.py https://huggingface.co/spaces/moshabann/echo-tutor/resolve/main/auth_module/models.py
404 Bytes
| """ | |
| 📦 Auth Module — Pydantic Models | |
| """ | |
| from pydantic import BaseModel | |
| from typing import Optional | |
| class UserCreate(BaseModel): | |
| email: str | |
| password: str | |
| full_name: str | |
| phone: Optional[str] = None | |
| class OTPRequest(BaseModel): | |
| email: str | |
| class OTPVerify(BaseModel): | |
| email: str | |
| code: str | |
| class PasswordChange(BaseModel): | |
| old_password: str | |
| new_password: str | |