I am trying to add a reset password link to the login page of a shopify store, it is running the Modular theme.
I have gone through this documentation and tried to follow accordingly without success:
https://shopify.dev/docs/themes/architecture/templates/customers-login#provide-a-forgot-your-password-option
Can anyone help me with adding a reset password link to this page, the stores theme templates are all over the place but I believe this is the current code being used:
{% comment %}
If a user has successfully requested a new password, the form.posted_successfully? variable
is set to true within the 'recover_customer_password' form only. Within that form you'll see
the variable 'resetPassword' set to true, which is used to initialize timber.resetPasswordSuccess().
{% endcomment %}
{{- 'customer.recover_password.success' | t -}}
{%- form 'customer_login' -%}
{{ 'customer.login.title' | t }}
{{- form.errors | default_errors -}}
{% if form.password_needed %}
{% endif %}
{%- endform -%}
{%- if shop.checkout.guest_login -%}
{%- form 'guest_login' -%}
{%- endform -%}
{%- endif -%}
{% if shop.customer_accounts_enabled %}
{{ 'customer.link.sign_up' | t }}
{% endif %}
{% if form.password_needed %}
{{ 'customer.login.forgot_password' | t }}
{% endif %}
{{ 'customer.recover_password.title' | t }}
{{ 'customer.recover_password.subtext' | t }}
{%- form 'recover_customer_password' -%}
{{ form.errors | default_errors }}
{%- if form.posted_successfully? -%}
{%- assign resetPassword = true -%}
{%- endif -%}
{{ 'customer.recover_password.cancel' | t }}
{%- endform -%}

