如何更改drupal 8 REST API核心消息
我正在使用以下补丁请求更新密码:如何更改drupal 8 REST API核心消息,drupal,drupal-8,Drupal,Drupal 8,我正在使用以下补丁请求更新密码: { "_links": { "type": { "href": "{url}/rest/type/user/user" } }, "pass": [ { "existing":"admin", "value":"123456789" }] } 如果现有密码错误,drupal将返回如下消息 Unprocessable Entity: validation failed.pass: Your
{
"_links": {
"type": {
"href": "{url}/rest/type/user/user"
}
},
"pass": [
{
"existing":"admin",
"value":"123456789"
}]
}
如果现有密码错误,drupal将返回如下消息
Unprocessable Entity: validation failed.pass: Your current password is missing or incorrect; it's required to change the Password.
我想删除这个“不可处理的实体:”内容,并希望向用户显示清晰的消息
Your current password is missing or incorrect; it's required to change the Password.
非常感谢您的帮助