diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index 170924487..a554753c6 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -9430,7 +9430,9 @@ const docTemplate = `{ "properties": { "new_password": { "description": "The new password for this user.", - "type": "string" + "type": "string", + "maxLength": 72, + "minLength": 8 }, "token": { "description": "The previously issued reset token.", @@ -9563,7 +9565,9 @@ const docTemplate = `{ "type": "object", "properties": { "new_password": { - "type": "string" + "type": "string", + "maxLength": 72, + "minLength": 8 }, "old_password": { "type": "string" diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index d07f510ff..4e8b12c26 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -9422,7 +9422,9 @@ "properties": { "new_password": { "description": "The new password for this user.", - "type": "string" + "type": "string", + "maxLength": 72, + "minLength": 8 }, "token": { "description": "The previously issued reset token.", @@ -9555,7 +9557,9 @@ "type": "object", "properties": { "new_password": { - "type": "string" + "type": "string", + "maxLength": 72, + "minLength": 8 }, "old_password": { "type": "string" diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index 7d733af15..0c5ce06cf 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -1215,6 +1215,8 @@ definitions: properties: new_password: description: The new password for this user. + maxLength: 72 + minLength: 8 type: string token: description: The previously issued reset token. @@ -1311,6 +1313,8 @@ definitions: v1.UserPassword: properties: new_password: + maxLength: 72 + minLength: 8 type: string old_password: type: string