HM-109. Добавлена ручка для смены пароля

This commit is contained in:
vigdorov
2020-08-08 16:14:05 +03:00
parent 96d3232f9f
commit d4f6032232
5 changed files with 104 additions and 32 deletions

View File

@ -9,7 +9,7 @@ POST http://localhost:4002/users HTTP/1.1
content-type: application/json
{
"login": "gfhHfgDHDU89",
"login": "string",
"avatar": "string",
"password": "string"
}
@ -62,4 +62,14 @@ Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6InN0cmluZyIsImFn
{
"avatar": "hui"
}
}
###
POST http://localhost:4002/users/change-password HTTP/1.1
content-type: application/json
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbiI6InN0cmluZyIsImFnZW50IjoidnNjb2RlLXJlc3RjbGllbnQiLCJpYXQiOjE1OTY4OTE3NjIsImV4cCI6MTU5Njg5MTc4Mn0.u_sYoVdCPjioimDZ-m7j3wAvgvaiw-pAl-OL5ei87K8
{
"old_password": "string32",
"new_password": "string"
}