
This commit includes: - User registration and authentication API with JWT - Password reset functionality - Role-based access control system - Database models and migrations with SQLAlchemy and Alembic - API documentation in README generated with BackendIM... (backend.im)
11 lines
187 B
Python
11 lines
187 B
Python
from pydantic import BaseModel, EmailStr
|
|
|
|
|
|
class Login(BaseModel):
|
|
email: EmailStr
|
|
password: str
|
|
|
|
|
|
class ChangePassword(BaseModel):
|
|
current_password: str
|
|
new_password: str |