chore: Fixing email verification on signup#39838
Conversation
WalkthroughThis pull request refactors the Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant H as AuthSuccessHandler
participant S as Session Store (Redis)
C->>H: Initiate post-verification handling
H->>S: Remove security context
H->>S: Invalidate session
H->>H: Retrieve redirect URL
H->>C: Redirect to verification pending page
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (1)
✨ Finishing Touches
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:
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
Documentation and Community
|
## Description If email verification is turned on, on sign up the user is not getting logged out in case they need to verify their email. This fixes that issue. Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /test sanity ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/13973800139> > Commit: 81eac95 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13973800139&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Sanity` > Spec: > <hr>Thu, 20 Mar 2025 16:37:15 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Enhanced the authentication flow by fully terminating obsolete sessions after verification, ensuring that any residual session data is completely cleared for improved security. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
If email verification is turned on, on sign up the user is not getting logged out in case they need to verify their email. This fixes that issue.
Fixes #
Issue Numberor
Fixes
Issue URLWarning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/test sanity
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/13973800139
Commit: 81eac95
Cypress dashboard.
Tags:
@tag.SanitySpec:
Thu, 20 Mar 2025 16:37:15 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit