Skip to content
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

Checkout "as guest" signing in customer #1177

Open
ibrarartisan opened this issue Oct 8, 2024 · 0 comments
Open

Checkout "as guest" signing in customer #1177

ibrarartisan opened this issue Oct 8, 2024 · 0 comments

Comments

@ibrarartisan
Copy link

ibrarartisan commented Oct 8, 2024

Hi,

There is an issue with the checkout when using "Signup as guest". even though it is checked the customer is still signed in after checkout. i understand the dependency on Rainlab.user but the customer should not be signed in and also should not be activated and the email should not be verified.

As i see here

plugins/offline/mall/classes/customer/DefaultSignUpHandler.php

        $credentials = [
            'login'    => array_get($data, 'email'),
            'password' => array_get($data, 'password'),
        ];

        return Auth::authenticate($credentials, true);

There should be a check to authenticate or not based on the "Signup as guest" option.

Also the is_guest column in the user table is not updating.

A quick update on this would be really appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant