fix(admin-api): reject explicit empty passwords
This commit is contained in:
parent
3b3aad6065
commit
836f4a2d69
4 changed files with 25 additions and 11 deletions
|
|
@ -86,7 +86,8 @@ defmodule Pleroma.Web.ApiSpec.Admin.UserOperation do
|
|||
type: :string,
|
||||
description:
|
||||
"Optional. When omitted, a `password_reset_link` is returned, " <>
|
||||
"allowing the user to set their own password."
|
||||
"allowing the user to set their own password. When provided, " <>
|
||||
"it must not be empty."
|
||||
}
|
||||
},
|
||||
required: [:nickname, :email]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue