From eb6663e1f54583fae73116c57cd7488223c66e17 Mon Sep 17 00:00:00 2001 From: "Frederick [Bot]" Date: Thu, 12 Sep 2024 08:42:38 +0000 Subject: [PATCH] [skip ci] Updated swagger docs (cherry picked from commit 9dd95101f9b695a16c1ff755442194f54ace154b) --- pkg/swagger/docs.go | 4 ++-- pkg/swagger/swagger.json | 4 ++-- pkg/swagger/swagger.yaml | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index ed708dfcf..5401cd918 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -9342,9 +9342,9 @@ const docTemplate = `{ "type": "integer" }, "password": { - "description": "The user's password in clear text. Only used when registering the user.", + "description": "The user's password in clear text. Only used when registering the user. The maximum limi is 72 bytes, which may be less than 72 characters. This is due to the limit in the bcrypt hashing algorithm used to store passwords in Vikunja.", "type": "string", - "maxLength": 250, + "maxLength": 72, "minLength": 8 }, "username": { diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index f2acdd5ec..bbcc117ec 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -9334,9 +9334,9 @@ "type": "integer" }, "password": { - "description": "The user's password in clear text. Only used when registering the user.", + "description": "The user's password in clear text. Only used when registering the user. The maximum limi is 72 bytes, which may be less than 72 characters. This is due to the limit in the bcrypt hashing algorithm used to store passwords in Vikunja.", "type": "string", - "maxLength": 250, + "maxLength": 72, "minLength": 8 }, "username": { diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index 2509e6c21..8a3d933d2 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -1273,8 +1273,10 @@ definitions: type: integer password: description: The user's password in clear text. Only used when registering - the user. - maxLength: 250 + the user. The maximum limi is 72 bytes, which may be less than 72 characters. + This is due to the limit in the bcrypt hashing algorithm used to store passwords + in Vikunja. + maxLength: 72 minLength: 8 type: string username: