elementor / elementor/elementor

Elementor Login Form not correctly setting login cookie for Woocommerce My Account

Open
#13,062 0 comments 0 reactions 0 assignees View on GitHub
compatibility/browser integration/woocommerce mod* mod/b* mod/e* product/pro type/content-management widget/pro/login-form
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

## Prerequisites

- [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [x] The issue still exists against the latest stable version of Elementor.

## Description

The bug in question is: If I login to my website(lonecbd.com/login-2), it is supposed to redirect to the account page. The user is immediately supposed to be presented with their account dashboard. What occurs upon the user being redirected to the account page, is that they are subsequently hit with a second login form which looks like this: https://imgur.com/a/Ydqw0G4

This happens even with just the stock woocommerce [woocommerce_my_account] shortcode placed on the page and nothing else. The user is definitely logged in after they use the login form, but woocommmerce is not correctly recognizing the users sign in state.

If the user logs in through the SECOND login form(which only appears on the my account page), THEN they are redirected the same account page URL(the page refreshes, lonecbd.com/account) and they can then FINALLY see their dashboard. Users shouldn't have to login twice.

## Steps to reproduce

Login to my site at lonecbd.com/login-2 using credentials:
User: test
Password: Iphone12-

You will be redirected to the account page and immediately be hit with a second login form created by woocommerce. If you login AGAIN with the same credentials on this page, you will then see your account dashboard.

## Isolating the problem

- [x] This bug happens with only Elementor plugin active (and Elementor Pro).
- [x] This bug happens with a default WordPress theme active.
- [x] I can reproduce this bug consistently using the steps above.

This is an issue with Woocommerce and Elementor's login forms. This issue occurs with the stock login form as well as third party ones. There is some incompatibility which is preventing woocommerce from correctly recognizing the login state of the user after they login through a login form created within Elementor. I do not know if this is a Elementor bug or a Woocommerce bug, i've submitted a bug report to Woocommerce as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.