Hello everyone, i'm trying to use `before_action :...
# support
o
Hello everyone, i'm trying to use
before_action :authenticate_spree_user!
on my store controller but it renders unauthorized (solidus 3.2) as well as it say _redirected too many times on the browser. I'_m trying to authenticate customers before they can shop; is there another way of achieving this ??
1
k
My guess is that it is redirecting to the auth page, which is also effected by this before_action and it will keep redirecting.
o
if that's the case how can i make it redirect to the login page instead?
k
o
thank you,👍 it has worked
k
nice! Thanks for asking