Fix: Auto-login after signup and redirect to dashboard#96
Fix: Auto-login after signup and redirect to dashboard#96AneeshAhuja31 merged 2 commits intoDevasy:mainfrom
Conversation
…to main dashboard in Home.py directly
❌ Deploy Preview for splitwizer failed. Why did it fail? →
|
WalkthroughThe change updates the signup logic so that after a user successfully signs up, the system immediately attempts to log them in using their new credentials. If the login is successful, the user is redirected to the main dashboard without needing to log in manually. Error handling for failed auto-login is also added. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SignupForm
participant AuthSystem
participant App
User->>SignupForm: Submit signup form
SignupForm->>AuthSystem: Attempt signup
AuthSystem-->>SignupForm: Signup success
SignupForm->>AuthSystem: Attempt login with new credentials
AuthSystem-->>SignupForm: Login success
SignupForm->>App: Rerun app (redirect to dashboard)
Note over App,User: User is now logged in and redirected
alt Login fails
AuthSystem-->>SignupForm: Login failure
SignupForm->>User: Show error (signup succeeded, login failed)
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)ui-poc/Home.py📄 CodeRabbit Inference Engine (.github/copilot-instructions.md)
Files:
🧠 Learnings (1)ui-poc/Home.py (1)Learnt from: CR 🔇 Additional comments (1)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
for more information, see https://pre-commit.ci
Devasy
left a comment
There was a problem hiding this comment.
Why was this required, Can send ss of the bug behavior it's trying to fix
|
@AneeshAhuja31, please add necessary tags before merging this PR. I;m approving this |
This PR improves the authentication flow by allowing users to be automatically logged in immediately after signing up. Upon successful registration, the user is redirected directly to the main dashboard in
Home.py, removing the need for a separate login step.Closes #95
Summary by CodeRabbit