error improvement for email_invite endpoint

This commit is contained in:
Alexander Strizhakov 2020-04-01 20:26:33 +03:00
commit 2d64500a9d
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
3 changed files with 64 additions and 5 deletions

View file

@ -392,6 +392,19 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret
- `email`
- `name`, optional
- Response:
- On success: `204`, empty response
- On failure:
- 400 Bad Request, JSON:
```json
[
{
`error` // error message
}
]
```
## `GET /api/pleroma/admin/users/:nickname/password_reset`
### Get a password reset token for a given nickname