HM-109. Добавлена ручка для смены пароля
This commit is contained in:
14
users.http
14
users.http
@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user