EEG-Workflow-System

Back to API docs

Reset User Password

Reset a new password for user account, i.e change password.

URL : /api/users/reset

Method : POST

Auth required : YES

Permissions required : None

Data constraints :

Authentication token in the cookie header.
Form-data (application-type: multipart/form-data) format expected from the client to the server.

{
    "currentPassword": "[old/current password]",
    "newPassword": "[new password]"
}

Success Response

Code : 200 SUCCESS

Content :
Return JSON format (mimetype: application/json) from server to client

{
    "success": "Password Changed"
}

Error Responses

Codes :

Content :

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