ndimatteo / HULL

💀 Headless Shopify Starter – powered by Next.js + Sanity.io
https://hull.dev
MIT License
1.36k stars 167 forks source link

Not possible to acccess /account #94

Closed dnlmzw closed 2 years ago

dnlmzw commented 2 years ago

Hi there,

I'm trying to build an account interface to review past orders. I can see that a section of the theme.liquid has a "passlist" of URLs that should redirect to the frontpage:

var passlist = [
        'account', // account-related routes (login, register, manage)
        'challenge', // Shopify's integrated google recaptcha
        'tools/recurring' // recharge-related routes
      ]

I've added some default templates to the templates-folder inside Shopify. Some of the URL's I can access, but the root URL (/account) redirects me to the frontpage.

Skærmbillede 2022-05-31 kl  12 45 16

Since /account/register seems to redirect to this URL (based on the action attribute), this results in the user never getting created.

Skærmbillede 2022-05-31 kl  12 50 52

I've tried disabling reCAPTCHA, just in case redirecting to /challenge was causing the issue. However, this didn't work either.

Skærmbillede 2022-05-31 kl  12 49 44

It's a bit of a blackbox to me what's actually happening so any advice would be greatly appreciated 🙌

dnlmzw commented 2 years ago

I found out that accounts weren't enabled. See this for future reference:

Skærmbillede 2022-05-31 kl  14 14 31