In the Authentication Controller class, the data access layer is not fully abstracted away from the controller layer by using the service layer as the middle class.
The major suggestion is to use dependency injection to only create a user service instance in the authentication controller and let the service layer be given the data access object independently of the controller.
In the Authentication Controller class, the data access layer is not fully abstracted away from the controller layer by using the service layer as the middle class.
The major suggestion is to use dependency injection to only create a user service instance in the authentication controller and let the service layer be given the data access object independently of the controller.