Login user
POST/login
To authenticate a user, you need to provide the user's email (username is optional) and password. After that, the user will be authenticated and a token will be returned. If the user has 2FA enabled, the user will be prompted to enter the 2FA code.
Request
Responses
- 200
- 401
- 422
Successful Response
The user was not found or the password was incorrect.
The user was not have correct request.