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

Handle unauthenticated users #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

batamire
Copy link

If an unauthenticated user tries to mark a product as a favorite, she gets redirected to the login page.
Product is put into favorites upon logging in or registering.

Inspired by: https://github.com/vinsol/solidus_favorite_products/blob/76b9662706af450a2615d580cd63a95645fd3e95/app/controllers/spree/favorite_products_controller.rb#L35

If an unauthenticated user tries to mark a product as a favorite, she gets redirected to the login page.
Product is put into favorites upon logging in or registering (and confirming) account.
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

Successfully merging this pull request may close these issues.

1 participant