Skip to content

Commit

Permalink
feat: Requires rollerworks/password-common-list
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jun 15, 2022
1 parent 75234a1 commit 3b9b67c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"limenius/liform-bundle": "dev-master",
"nelmio/cors-bundle": "^2.2",
"phpdocumentor/reflection-docblock": "^5.2",
"roadiz/user-bundle": "~2.0.0 || dev-develop",
"roadiz/rozier-bundle": "~2.0.0 || dev-develop",
"roadiz/compat-bundle": "~2.0.0 || dev-develop",
"roadiz/core-bundle": "~2.0.0 || dev-develop",
"roadiz/rozier-bundle": "~2.0.0 || dev-develop",
"roadiz/user-bundle": "~2.0.0 || dev-develop",
"rollerworks/password-common-list": "^0.2.0",
"rollerworks/password-strength-bundle": "^2.2",
"rollerworks/password-strength-validator": "^1.6",
"scienta/doctrine-json-functions": "^4.2",
"sensio/framework-extra-bundle": "^6.1",
"sentry/sentry-symfony": "^4.2",
Expand Down
4 changes: 4 additions & 0 deletions config/api_resources/user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ RZ\Roadiz\CoreBundle\Entity\User:
controller: RZ\Roadiz\UserBundle\Controller\SignupController
input: RZ\Roadiz\UserBundle\Api\Dto\UserInput
output: RZ\Roadiz\UserBundle\Api\Dto\VoidOutput
validation_groups:
- no_empty_password
openapi_context:
summary: Create a new public user
parameters: ~
Expand Down Expand Up @@ -64,6 +66,8 @@ RZ\Roadiz\CoreBundle\Entity\User:
# Password reset must not call ReadListener to let DataTransformer provide User.
read: false
validate: false
validation_groups:
- no_empty_password
openapi_context:
summary: Reset a public user password
parameters: ~
Expand Down
1 change: 1 addition & 0 deletions config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
Limenius\LiformBundle\LimeniusLiformBundle::class => ['all' => true],
Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true],
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
Rollerworks\Bundle\PasswordCommonListBundle\RollerworksPasswordCommonListBundle::class => ['all' => true],
];
8 changes: 0 additions & 8 deletions config/packages/rollerworks_password.yml

This file was deleted.

0 comments on commit 3b9b67c

Please sign in to comment.