changelog/release-6-6-0-0/2023-12-07-refactor-loginroute-and-accountservice.md
Rama trunk · réplica de lectura del repositorio original.
---
title: Refactor LoginRoute and AccountService
issue: NEXT-32258
author: Max
author_email: max@swk-web.com
author_github: @aragon999
---
# Core
* Added method `Shopware\Core\Checkout\Customer\SalesChannel\AccountService::loginByCredentials`
* Changed `Shopware\Core\Checkout\Customer\SalesChannel\LoginRoute` and moved login logic into the `AccountService`
* Deprecated method `Shopware\Core\Checkout\Customer\SalesChannel\AccountService::login` use `AccountService::loginByCredentials` or `AccountService::loginById` instead
* Deprecated unused constant `Shopware\Core\Checkout\Customer\CustomerException::CUSTOMER_IS_INACTIVE` and unused method `Shopware\Core\Checkout\Customer\CustomerException::inactiveCustomer`
___
# Upgrade Information
## Shopware\Core\Checkout\Customer\SalesChannel\AccountService::login is removed
The `Shopware\Core\Checkout\Customer\SalesChannel\AccountService::login` method will be removed in the next major version. Use `AccountService::loginByCredentials` or `AccountService::loginById` instead.
___
# Next Major Version Changes
## AccountService refactoring
The `Shopware\Core\Checkout\Customer\SalesChannel\AccountService::login` method is removed. Use `AccountService::loginByCredentials` or `AccountService::loginById` instead.
Unused constant `Shopware\Core\Checkout\Customer\CustomerException::CUSTOMER_IS_INACTIVE` and unused method `Shopware\Core\Checkout\Customer\CustomerException::inactiveCustomer` are removed.