feat: web login system, auto-load history, config extraction

- Add Flask session-based authentication (username/password login)
- Auto-load chat history from backend on page load
- Extract SECRET_KEY and user credentials to web_config.json
- Create web_config.example.json as template
- Add web_config.json to .gitignore (sensitive info)
- Update docs: architecture, API reference, quick start guides
This commit is contained in:
root
2026-04-28 09:25:47 +08:00
parent 0ebd1d7ac6
commit 46008c14c5
10 changed files with 143 additions and 4 deletions

View File

@ -32,7 +32,11 @@ TrulyMEM-TrueHumanMEM/
│ ├── services/ # Service layer (config only)
│ ├── handlers/ # Event handlers
│ └── styles/ # Style files
── tests/ # Tests (54 tests)
── web_api.py # Web API service (login + RESTful API)
├── templates/login.html # Login page template
├── static/ # Web frontend static files (star map visualization)
├── web_config.json # Web service config file (sensitive, not committed)
└── web_config.example.json # Web config template
```
## Architecture Diagram