POST api/password/ChangePassword
Mật khẩu phải có tối thiểu 6 và tối đa 20 ký tự! Mật khẩu mới không được giống mật khẩu cũ! Mật khẩu mới và xác nhận mật khẩu không giống nhau!
Request Information
URI Parameters
None.
Body Parameters
OldPassword: 'abc123456',NewPassword: '123456',RePassword: '123456',
DoiMatKhauData| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| OldPassword | string |
None. |
|
| NewPassword | string |
None. |
|
| RePassword | string |
None. |
|
| Logout | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"OldPassword": "sample string 2",
"NewPassword": "sample string 3",
"RePassword": "sample string 4",
"Logout": true
}
application/xml, text/xml
Sample:
<DoiMatKhauData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models"> <Id>1</Id> <Logout>true</Logout> <NewPassword>sample string 3</NewPassword> <OldPassword>sample string 2</OldPassword> <RePassword>sample string 4</RePassword> </DoiMatKhauData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
MatKhauModel| Name | Description | Type | Additional information |
|---|---|---|---|
| status | integer |
None. |
|
| data | DoiMatKhauData |
None. |
|
| page | DoiMatKhauData |
None. |
|
| error | ErrorModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 1,
"data": {
"Id": 1,
"OldPassword": "sample string 2",
"NewPassword": "sample string 3",
"RePassword": "sample string 4",
"Logout": true
},
"page": {
"Id": 1,
"OldPassword": "sample string 2",
"NewPassword": "sample string 3",
"RePassword": "sample string 4",
"Logout": true
},
"error": {
"message": "sample string 1",
"code": "sample string 2"
}
}
application/xml, text/xml
Sample:
<MatKhauModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
<data>
<Id>1</Id>
<Logout>true</Logout>
<NewPassword>sample string 3</NewPassword>
<OldPassword>sample string 2</OldPassword>
<RePassword>sample string 4</RePassword>
</data>
<error>
<code>sample string 2</code>
<message>sample string 1</message>
</error>
<page>
<Id>1</Id>
<Logout>true</Logout>
<NewPassword>sample string 3</NewPassword>
<OldPassword>sample string 2</OldPassword>
<RePassword>sample string 4</RePassword>
</page>
<status>1</status>
</MatKhauModel>