Login user by authenticate the existing user.
URL : /api/users/login
Method : POST
Auth required : NO
Permissions required : None
Data constraints :
Form-data (application-type: multipart/form-data
) format expected from the client to the server.
{
"email": "[user email]",
"password": "[user password]"
}
Code : 200 SUCCESS
Content :
Return JSON format (mimetype: application/json
) from server to client
{
"reset": false,
"id": "[user id]",
"email": "[user email]",
"token": "[hashed token]",
"username": "[user Username]"
}
Codes :
400 Bad Request
(If python error occurs)403 Forbidden
(If incorrect credentials)Content :
{
"error": "[whatever the error is]"
}