🔐 Auth Scaffold
In Lila Framework, you can now generate all authentication routes, templates, models, and middlewares automatically using a single command. This helps you quickly set up login, registration, password reset, and dashboard functionality without manually creating files.
✨ Features
- Generates routes:
/login,/register,/forgot-password,/invalid-token,/change-password - Creates the
dashboardandprofilepages - Includes middlewares, sessions, and validations using Pydantic
- Updates
main.pyandcli/migrations.pyautomatically
🚀 Running Auth Scaffold
Use the following commands in your terminal:
Terminal Command
# Run auth scaffold to generate routes, templates, models, and middlewares
lila-auth
📂 Generated Files & Structure
The scaffold will create/update:
- Templates: login, register, forgot-password, change-password
- Models: updates
Userand createsAuthModel - Routes & Functions: handlers for each template/action
- Middlewares: session and validation handling