Skip to content

Commit

Permalink
Merge pull request #8255 from appwrite/feat-update-pwd-abuse
Browse files Browse the repository at this point in the history
Feat update pwd abuse
  • Loading branch information
abnegate committed Jun 11, 2024
2 parents 3c123d3 + a4c1275 commit e195018
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/api/account.php
Original file line number Diff line number Diff line change
Expand Up @@ -2524,6 +2524,7 @@
->label('sdk.response.model', Response::MODEL_USER)
->label('sdk.offline.model', '/account')
->label('sdk.offline.key', 'current')
->label('abuse-limit', 10)
->param('password', '', fn ($project, $passwordsDictionary) => new PasswordDictionary($passwordsDictionary, $project->getAttribute('auths', [])['passwordDictionary'] ?? false), '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)
->inject('requestTimestamp')
Expand Down

0 comments on commit e195018

Please sign in to comment.