-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(vue-demo): double opt in registration #1489
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
@shopware/api-client
@shopware/api-gen
@shopware-pwa/cms-base
@shopware-pwa/composables-next
@shopware-pwa/helpers-next
@shopware-pwa/nuxt3-module
commit: |
templates/vue-demo-store/components/account/AccountRegisterForm.vue
Outdated
Show resolved
Hide resolved
templates/vue-demo-store/components/account/AccountRegisterForm.vue
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works 🎉, but it redirects the customer to the default Storefront when he accepts the double opt-in link. Do we already have a task to fix that?
Also, we have some files with conflicts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, let's link the issue @BrocksiNet mentioned and we can merge it!
@BrocksiNet you mean the link in the email? This is a storefront domain configuration, we cannot change it on the cloud because of the domain verification |
@kstala can you check e2e here? |
@patzick double-opt-in was enabled |
Description
This pull request includes changes to improve user registration and session handling.
Improvements to user registration and session handling:
packages/composables/src/useUser/useUser.ts
: Updated theuseUser
function to set user data when the user is active and not in double opt-in registration, and to refresh the session context accordingly.templates/vue-demo-store/components/account/AccountRegisterForm.vue
: Modified theinvokeSubmit
function to handle double opt-in registration flow correctly and navigate active users to the home page.Added a confirmation page after the double opt-in option. The confirmation link is included in the email after registration.
closes #1462
Type of change
ToDo's
Screenshots (if applicable)
Additional context