fix: Redirect address after successful tg binding - #1918
Conversation
WalkthroughUpdated Telegram binding redirect: after a successful bind, the handler now redirects from /setting to /console/personal. No other logic or error handling was changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant Web as Web Server
participant Ctrl as Telegram Controller
User->>Web: Complete Telegram bind
Web->>Ctrl: TelegramBind()
Ctrl-->>Web: Success status
Note over Ctrl,Web: On success, redirect target updated
Web-->>User: HTTP 302 → /console/personal
alt Bind error
Web-->>User: Error response (unchanged)
end
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
测试通过,重定向正常。 |
fix: Redirect address after successful tg binding
tg绑定成功之后调整地址修改为现在的个人中心地址
/console/personal。目前代码中还是老版本的
/setting,已经不存在。Summary by CodeRabbit