feat: 手机号登录 + 全站汉化 + 开发体验优化#1
Merged
Merged
Conversation
新增 PhoneLoginService,支持通过手机号接收 Telegram 验证码登录, 与现有 QR 扫码登录并存。前端添加 tab 切换,2FA 流程两种方式共享。 新增端点: - POST /api/auth/phone-login/send-code - POST /api/auth/phone-login/verify-code - GET /api/auth/phone-login/status
make dev 并行启动 uvicorn + vite dev server,Ctrl+C 统一退出。
dev-stop 先 kill 占用 8080/5173 端口的进程,防止端口冲突。
登录页、仪表盘、频道、消息、同步任务、Webhook 日志、 配置检查、侧边栏导航全部改为中文显示。
改为通过模块引用访问,确保 init_engine() 赋值后能正确读取。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PhoneLoginService,支持通过手机号接收 Telegram 验证码登录,与 QR 扫码登录并存,2FA 流程共享make dev并行启动前后端,自动清理残留进程防止端口冲突_async_session_factory导入为 None 导致启动崩溃;修复用户无 username 时显示空(@)新增端点
/api/auth/phone-login/send-code/api/auth/phone-login/verify-code/api/auth/phone-login/statusTest plan