Handles the authentication logic.
The internationalisation object.
The request to the associated endpoint.
The project's database.
The maximum amount of seats of the vehicle.
The API route for user search in the tables.
The current date.
The instance's admin password.
Adds a session cookie on successful login, to skip the login page.
Handles the authentication logic.