Hello there!
I can’t output error messages in “Customer login form”.
The fields are not colored. And no error messages is displayed under the fields.
Content of the file “login.liquid”:
#### {{ 'customer.login.title' | t }}
{%- assign formId = 'CustomerLoginForm' -%}
{% form 'customer_login', id: formId, novalidate: 'novalidate', class: 'd-flex flex-column vertical-form' %}
{% include 'form-status', form: form, form_id: formId %}
{%- if form.errors contains 'email' -%}
{{ 'general.accessibility.error' | t }}
{% include 'icon-error' %}
{{ form.errors.translated_fields['email'] | capitalize }} {{ form.errors.messages['email'] }}.
{%- endif -%}
{% if form.password_needed %}
{% endif %}
{%- if form.errors contains 'password' -%}
{% include 'icon-error' %}
{{ form.errors.translated_fields['password'] | capitalize }} {{ form.errors.messages['password'] }}.
{%- endif -%}
{{ 'layout.customer.create_account' | t | customer_register_link }}
{% if form.password_needed %}
{{ 'customer.login.forgot_password' | t }}
{% endif %}
{% endform %}
This check works correctly in the “register.liquid” file.
What am I doing wrong? I would be grateful for any help. Thanks!
