Compare commits

...

3 Commits

Author SHA1 Message Date
204cb223a3 Fix Log model registration - import models before init_db
The Log model was not being registered with SQLAlchemy's metadata,
causing the logs table to not be created on startup.
2026-03-21 12:02:35 +08:00
ca69a35e02 chore: remove credentials from login placeholder
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 12:01:17 +08:00
dc8cd06625 fix(login): allow username login by changing input type from email to text
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 12:00:42 +08:00
3 changed files with 6 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ from contextlib import asynccontextmanager
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.database import init_db
import app.models # noqa: F401 - 注册所有模型
from app.routers import (
auth_router,
conversation_router,

View File

@@ -8,6 +8,7 @@ from app.models.conversation import Conversation, Message
from app.models.knowledge_graph import KGNode, KGEdge
from app.models.memory import MemorySummary, UserMemory
from app.models.todo import DailyTodo, TodoSource
from app.models.log import Log, LogType, LogLevel
__all__ = [
"Base",
@@ -28,4 +29,7 @@ __all__ = [
"UserMemory",
"DailyTodo",
"TodoSource",
"Log",
"LogType",
"LogLevel",
]

View File

@@ -130,7 +130,7 @@ async function handleRegister() {
<div class="field-group">
<label class="field-label">// OPERATOR ID</label>
<div class="field-input">
<input v-model="email" type="email" placeholder="operator@jarvis.ai" required />
<input v-model="email" type="text" placeholder="邮箱 / 用户名 / ID" required />
</div>
</div>