--- url: >- https://developer.youcan.shop/themes/templates/template-types/customer-login.md --- # customer-login The `customer-login` template renders the login page and the password recovery page. ## Location The `customer-login` template is located in the `templates` directory of the theme. ```bash └── theme ├── layout ├── templates │ ... │ ├── customer-login.json │ ... ... ``` ## Usage It renders at `/account/login` and `/account/recover`. Without this template the store shows its built-in pages. When the store disables customer accounts, `/account/login` redirects to the home page. Logged in customers go to the home page. Use the [`customer_login`](/themes/tags/form#customer-login) form to log in and the [`recover_customer_password`](/themes/tags/form#recover-customer-password) form to send a reset email. Both forms can be on the same page. ```liquid {% form 'customer_login' %} {{ form.errors | default_errors }} {% endform %} {% form 'recover_customer_password' %} {% if form.posted_successfully %}
Check your email.
{% endif %} {% endform %} Create an account ```