Download the PHP package alpsify/reset-password-api-bundle without Composer
On this page you can find all versions of the php package alpsify/reset-password-api-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alpsify/reset-password-api-bundle
More information about alpsify/reset-password-api-bundle
Files in alpsify/reset-password-api-bundle
Package reset-password-api-bundle
Short Description Reset password logic for multiple user types over API endpoint.
License MIT
Informations about the package reset-password-api-bundle
Reset Password API Bundle
ResetPasswordApiBundle is a simple way to generate API endpoints and send email to handle reset password logic of your users. Can handle multiple User types/classes.
Install the package with:
Just letting you know that this bundle is inspired by the ResetPasswordBundle. We just developed our in order to fit our needs and building way of handling many user types. If you need standard reset password logic you should go check it. And pay a beer to the creator team Symfony Cast.
Usage
No recipe for the moment ... Not supported by the MakerBundle yet ... That's too bad ...
We are working on both subject :)
Setting up manually
1- Create a PHP class named ResetPasswordRequest
which extends AbstractResetPasswordRequest
and implements the methods registerUser() and fetchUser(). Here an example with many types of users.
Create a new migration
Execute the migration in order to create the table in your database
2- Create the repository class and make it extend ServiceEntityRepository
implements ResetPasswordRequestRepositoryInterface
. Don't forget to also use the ResetPasswordRequestRepositoryTrait
: if you want to override, feel free to do so.
3- Create the reset email template. Make it shiny and colorful :rainbow: :unicorn:
Configuration
Use the files your generate before to complete the configuration.
Parameters
//TODO
Access new API endpoints
Don't forget to authorized everyone to access those endpoints by adding them in access_controle :
All versions of reset-password-api-bundle with dependencies
symfony/config Version ^5.0
symfony/dependency-injection Version ^5.0
symfony/http-kernel Version ^5.0
doctrine/orm Version ^2.7
symfony/security-bundle Version ^5.0
symfony/mailer Version ^5.0
symfony/twig-bundle Version ^5.0