EEG-Workflow-System

Back to API docs

User Login

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]"
}

Success Response

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]"
}

Error Responses

Codes :

Content :

{
    "error": "[whatever the error is]"
}