Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[API] Password reset#12360

Merged
lchrusciel merged 15 commits into
Sylius:masterfrom
arti0090:api-resetting-password
Feb 25, 2021
Merged

[API] Password reset#12360
lchrusciel merged 15 commits into
Sylius:masterfrom
arti0090:api-resetting-password

Conversation

@arti0090
Copy link
Copy Markdown
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
License MIT

@arti0090 arti0090 requested a review from a team as a code owner February 17, 2021 07:57
@probot-autolabeler probot-autolabeler Bot added API APIs related issues and PRs. Shop ShopBundle related issues and PRs. labels Feb 17, 2021
Comment thread src/Sylius/Behat/Context/Api/EmailContext.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Command/ResetPasswordRequest.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/CommandHandler/ResetPasswordRequestHandler.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Event/ResetPasswordRequested.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/EventHandler/ResetPasswordRequestedHandler.php Outdated
@arti0090 arti0090 force-pushed the api-resetting-password branch from 10e13e8 to 6d453ce Compare February 18, 2021 07:31
@arti0090 arti0090 force-pushed the api-resetting-password branch from e8dbb38 to ecadef4 Compare February 18, 2021 07:55
@arti0090
Copy link
Copy Markdown
Contributor Author

arti0090 commented Feb 18, 2021

TODO for part 2:

  • Add phpspecs to new classes
  • if possible update swagger docs with properties that are needed for password reset
  • add endpoint for change the password with token from email
  • implement rest of behat scenarios

@arti0090 arti0090 changed the title [WIP][API] Password reset [API] Password reset Feb 18, 2021
Comment thread src/Sylius/Behat/Client/ApiSecurityClientInterface.php Outdated
Comment thread src/Sylius/Behat/Context/Api/Shop/LoginContext.php Outdated
@arti0090 arti0090 force-pushed the api-resetting-password branch from dc43d89 to 21d724c Compare February 18, 2021 09:56
@arti0090 arti0090 force-pushed the api-resetting-password branch from 21d724c to 656719d Compare February 18, 2021 10:25
Comment thread src/Sylius/Behat/Context/Api/EmailContext.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Command/ResetPassword.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Command/SendResetPasswordEmail.php
Comment thread src/Sylius/Bundle/ApiBundle/CommandHandler/ResetPasswordHandler.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/CommandHandler/ResetPasswordHandler.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/CommandHandler/SendResetPasswordEmailHandler.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/CommandHandler/SendResetPasswordEmailHandler.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Event/ResetPasswordRequested.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/EventHandler/ResetPasswordRequestedHandler.php Outdated
Comment thread src/Sylius/Behat/Context/Api/EmailContext.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Command/ResetPassword.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Command/ResetPassword.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Event/ResetPasswordRequested.php Outdated
Comment thread src/Sylius/Behat/Resources/config/services/contexts/api.xml Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Resources/config/api_resources/Customer.xml Outdated
@arti0090 arti0090 force-pushed the api-resetting-password branch from 249185e to 5bc148c Compare February 19, 2021 09:25
Comment thread src/Sylius/Bundle/ApiBundle/CommandHandler/ResetPasswordRequestHandler.php Outdated
Comment thread src/Sylius/Behat/Resources/config/suites/api/account/login.yml Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Command/SendResetPasswordEmail.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Command/SendResetPasswordEmail.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Event/ResetPasswordRequested.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Event/ResetPasswordRequested.php Outdated
Comment thread src/Sylius/Bundle/CoreBundle/Resources/views/Email/passwordReset.html.twig Outdated
Comment thread src/Sylius/Behat/Context/Api/Shop/LoginContext.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/CommandHandler/RequestResetPasswordTokenHandler.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/CommandHandler/RequestResetPasswordTokenHandler.php Outdated
Comment thread src/Sylius/Bundle/ApiBundle/Command/LocaleCodeAwareInterface.php
Comment thread src/Sylius/Bundle/ApiBundle/Command/LocaleCodeAwareInterface.php
Comment thread src/Sylius/Bundle/ApiBundle/Resources/config/validation/ResetPassword.xml Outdated
@arti0090 arti0090 force-pushed the api-resetting-password branch from 7dd3ed4 to e79526a Compare February 24, 2021 13:32
Comment thread src/Sylius/Bundle/ApiBundle/Command/RequestResetPasswordToken.php
Comment thread src/Sylius/Behat/Context/Api/Shop/LoginContext.php Outdated
@arti0090 arti0090 force-pushed the api-resetting-password branch from cddf339 to 68049ef Compare February 25, 2021 07:28
@arti0090 arti0090 force-pushed the api-resetting-password branch from 68049ef to 53e2976 Compare February 25, 2021 07:29
<collectionOperation name="shop_password_reset_request">
<attribute name="method">POST</attribute>
<attribute name="path">shop/request-reset-password</attribute>
<attribute name="messenger">input</attribute>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could go to the generic section (below validation_groups)

Comment on lines +28 to +29
<attribute name="output">false</attribute>
<attribute name="status">202</attribute>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe could go to the generic section (below validation_groups)

<attribute name="status">202</attribute>
<attribute name="validation_groups">
<attribute>sylius</attribute>
<attribute>sylius_shop_password_reset</attribute>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this group needed?

@lchrusciel lchrusciel merged commit 29b5d2d into Sylius:master Feb 25, 2021
@lchrusciel
Copy link
Copy Markdown
Contributor

Thank you, @arti0090! 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API APIs related issues and PRs. Shop ShopBundle related issues and PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants