From 50df089517c2bacd65414c67148136b1b93e6026 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Tue, 2 Jun 2026 19:34:10 +0400 Subject: [PATCH] Fix old password validation --- app/controllers/api/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 114d9f4a17..74501671ad 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -3274,7 +3274,7 @@ Http::patch('/v1/account/password') )) ->label('abuse-limit', 10) ->param('password', '', fn ($project, $passwordsDictionary) => new AllOf([new PasswordStrength($project->getAttribute('auths', [])['passwordStrength'] ?? []), new PasswordDictionary($passwordsDictionary, enabled: $project->getAttribute('auths', [])['passwordDictionary'] ?? false)], Validator::TYPE_STRING), 'New user password. Must be at least 8 chars.', false, ['project', 'passwordsDictionary']) - ->param('oldPassword', '', new Password(), 'Current user password. Must be at least 8 chars.', true) + ->param('oldPassword', '', new Text(256, 0), 'Current user password. Max length: 256 chars.', true) ->inject('response') ->inject('user') ->inject('project')